-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from spartansystems/feature/video-and-datepicker
Add video files and datepicker field
- Loading branch information
Showing
15 changed files
with
155 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ruby: | ||
config_file: .rubocop.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.3 | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/DotPosition: | ||
EnforcedStyle: leading | ||
SupportedStyles: | ||
- leading | ||
- trailing | ||
|
||
Style/FrozenStringLiteralComment: | ||
EnforcedStyle: when_needed | ||
SupportedStyles: | ||
- when_needed | ||
- always | ||
- never | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
EnforcedStyle: single_quotes | ||
SupportedStyles: | ||
- single_quotes | ||
- double_quotes | ||
ConsistentQuotesInMultiline: false | ||
|
||
Style/StringLiteralsInInterpolation: | ||
EnforcedStyle: single_quotes | ||
SupportedStyles: | ||
- single_quotes | ||
- double_quotes | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
source 'http://rubygems.org' | ||
source 'https://rubygems.org' | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# frozen_string_literal: true | ||
module AtomicCms | ||
class Video < Media | ||
validates_attachment :file, presence: true, | ||
content_type: { content_type: /\Avideo/ } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
span.li.string.input | ||
label.label #{name.to_s.humanize} | ||
input.cms-field.datepicker type="text" name="#{name}" value="#{value}" data-ng-model="preview.#{name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
Gem::Specification.new do |s| | ||
s.name = 'atomic_cms' | ||
s.version = '0.2.5' | ||
s.version = '0.3.0' | ||
s.summary = 'Atomic CMS' | ||
s.description = 'Live CMS powered by atomic assets.' | ||
s.authors = ['Don Humphreys', 'Spartan'] | ||
s.email = '[email protected]' | ||
s.files = `git ls-files`.split(/\n/) | ||
s.test_files = Dir['spec/**/*'] | ||
s.homepage = 'https://github.com/spartansystems/atomic_cms' | ||
s.license = 'MIT' | ||
s.license = 'MIT' | ||
|
||
s.add_dependency 'rails', '~> 4.2' | ||
s.add_dependency 'activeadmin', '1.0.0.pre2' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.