dead_simple_cms 0.12.10 → 0.12.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZmRjNTMzYWQ0YWI5OGRjOTRjNGE1MTg4OWIyMjUyYjRjNTA0NmRmZA==
5
- data.tar.gz: !binary |-
6
- N2Q0NDlmMGE5NGI4NjA0M2FlMzNlMTc0OGI3MWVmMDM0Mjk4ODM0Yw==
2
+ SHA1:
3
+ metadata.gz: bf552cf0ca42e604ec4187082d8918bf88efc8a1
4
+ data.tar.gz: f18b477c63330d7230e9c4b47c2ed3b58f034974
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YjgwZTQyOWQ5NzM0YmM5NWQ0ODc3NmIwYjk5NjgzYzYzYjFmZTA4M2RhN2Yw
10
- NzBhMWZiMDhkNTNjOGE5MzRiMWM1Mjg2ZjE1ZTUyYjdjYzdkOWFlZjEyMTI5
11
- ZmEwYmQ3YzQ5MTU5OTJkOTg1ZTdhZDExODJlODA0MzVhM2I5NTg=
12
- data.tar.gz: !binary |-
13
- NWIxOWI1YzliZmQ1MDFjYTYyZGU5ZDY3ZmM5NGYwNmNhZWFkMmYyZWQzZTBj
14
- ZjBmM2IzYjg1Yjk4YTU4NzVhYzRmZWY2Yzg1NmNjN2E1MmQzOWI2YTE3ODYy
15
- NDZhMzFjYjQxOTcwZDc0NGJlZjUyNTBhYzUwYWJjOWNiZGU3MTk=
6
+ metadata.gz: a08887c7bf001cd78630326d08bd5633fc5d9e1a8e7eee43ff8e38ff8dc6ca17a9ee8ae458929457534f1aaeda31a8b489dfbc465b026ebfca8d8843ad750dcd
7
+ data.tar.gz: 9a3be8f64867cda91a08a96b41b78fe53c5519685ae25e064d63e661633564eadb6fd10f04b7ab35fc588c671b2bf04dfbf6680d9f2377429187ed5c9b33f3d9
@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
22
22
 
23
23
  gem.add_development_dependency "simple_form"
24
24
  gem.add_development_dependency "rails", ">= 3.0"
25
- gem.add_development_dependency "rspec"
25
+ gem.add_development_dependency "rspec", "2.11.0"
26
26
  gem.add_development_dependency "sqlite3"
27
27
 
28
28
  gem.description = <<-description
@@ -19,7 +19,8 @@ module DeadSimpleCMS
19
19
  self.default_input_type = :check_box
20
20
 
21
21
  def initialize(identifier, options={})
22
- options.update(:collection => [true, false], :default => false)
22
+ options = {collection: [true, false], default: false}.merge(options)
23
+
23
24
  super
24
25
  end
25
26
 
@@ -1,3 +1,3 @@
1
1
  module DeadSimpleCMS
2
- VERSION = "0.12.10"
2
+ VERSION = "0.12.11"
3
3
  end
@@ -76,6 +76,16 @@ describe DeadSimpleCMS::Attribute::Type::Boolean do
76
76
 
77
77
  its(:default_input_type) { should == :check_box }
78
78
 
79
+ describe '#initialize' do
80
+ context 'with default option specified' do
81
+ let(:options) { {default: true} }
82
+
83
+ it 'has default options set to true' do
84
+ expect(subject.default).to be true
85
+ end
86
+ end
87
+ end
88
+
79
89
  describe "#convert_value" do
80
90
  it %{should convert "true" or "1" into TrueClass} do
81
91
  ["True", "true", "1", "TruE"].each do |str|
metadata CHANGED
@@ -1,135 +1,140 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dead_simple_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.10
4
+ version: 0.12.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aryk Grosz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cells
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: simple_form
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '3.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 2.11.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 2.11.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sqlite3
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ! '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ! '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- description: ! "Dead Simple CMS is a library for modifying different parts of your
112
- website without the overhead of having a\nfullblown CMS. The idea with this library
113
- is simple: provide an easy way to hook into different parts of your\napplication
114
- (not only views) by defining the different parts to modify in an easy, straight-forward
115
- DSL.\n\nThe basic components of this library include:\n\n * A DSL to define the
116
- changeable values in your app\n * Form generators based on SimpleForm (with or without
117
- Bootstrap) and default rails FormBuilder\n * Expandable storage mechanisms so you
118
- can store the data in different locations\n * Currently supported: Redis, Database,
119
- Memcache, even Memory (for testing)\n * Presenters/renderers so you can take groups
120
- of variables and render them into your views (ie image_tag)\n\nWhat it doesn't have:\n\n
121
- * Versioning - be able to look at old versions of the content\n * Timing - set start
122
- and end time for different content\n * Page builder tools - this is not the right
123
- tool if you want to design full pages\n"
111
+ description: |
112
+ Dead Simple CMS is a library for modifying different parts of your website without the overhead of having a
113
+ fullblown CMS. The idea with this library is simple: provide an easy way to hook into different parts of your
114
+ application (not only views) by defining the different parts to modify in an easy, straight-forward DSL.
115
+
116
+ The basic components of this library include:
117
+
118
+ * A DSL to define the changeable values in your app
119
+ * Form generators based on SimpleForm (with or without Bootstrap) and default rails FormBuilder
120
+ * Expandable storage mechanisms so you can store the data in different locations
121
+ * Currently supported: Redis, Database, Memcache, even Memory (for testing)
122
+ * Presenters/renderers so you can take groups of variables and render them into your views (ie image_tag)
123
+
124
+ What it doesn't have:
125
+
126
+ * Versioning - be able to look at old versions of the content
127
+ * Timing - set start and end time for different content
128
+ * Page builder tools - this is not the right tool if you want to design full pages
124
129
  email:
125
130
  - aryk@mixbook.com
126
131
  executables: []
127
132
  extensions: []
128
133
  extra_rdoc_files: []
129
134
  files:
130
- - .gitignore
131
- - .rspec
132
- - .rvmrc.dev
135
+ - ".gitignore"
136
+ - ".rspec"
137
+ - ".rvmrc.dev"
133
138
  - Gemfile
134
139
  - LICENSE
135
140
  - README.md
@@ -207,50 +212,50 @@ require_paths:
207
212
  - lib
208
213
  required_ruby_version: !ruby/object:Gem::Requirement
209
214
  requirements:
210
- - - ! '>='
215
+ - - ">="
211
216
  - !ruby/object:Gem::Version
212
217
  version: '0'
213
218
  required_rubygems_version: !ruby/object:Gem::Requirement
214
219
  requirements:
215
- - - ! '>='
220
+ - - ">="
216
221
  - !ruby/object:Gem::Version
217
222
  version: '0'
218
223
  requirements: []
219
224
  rubyforge_project:
220
- rubygems_version: 2.4.6
225
+ rubygems_version: 2.4.5.1
221
226
  signing_key:
222
227
  specification_version: 4
223
228
  summary: DeadSimpleCMS provides a way to define, modify, and present custom variables
224
229
  and content in your application.
225
230
  test_files:
231
+ - spec/spec_helper.rb
232
+ - spec/dead_simple_cms/section_spec.rb
233
+ - spec/dead_simple_cms/section/builder_spec.rb
234
+ - spec/dead_simple_cms/file_uploader/base_spec.rb
226
235
  - spec/dead_simple_cms/attribute/collection_spec.rb
227
236
  - spec/dead_simple_cms/attribute/type/all_spec.rb
228
237
  - spec/dead_simple_cms/attribute/type/base_spec.rb
229
- - spec/dead_simple_cms/configuration_spec.rb
230
- - spec/dead_simple_cms/file_uploader/base_spec.rb
238
+ - spec/dead_simple_cms/util/identifier_spec.rb
239
+ - spec/dead_simple_cms/util/identifier/dictionary_spec.rb
240
+ - spec/dead_simple_cms/util/identifier/dictionary/invalid_entry_class_spec.rb
241
+ - spec/dead_simple_cms/util/identifier/dictionary/duplciate_item_spec.rb
231
242
  - spec/dead_simple_cms/group/configuration_spec.rb
232
243
  - spec/dead_simple_cms/group/presenter/render_mixin_spec.rb
233
244
  - spec/dead_simple_cms/group/presenter_spec.rb
245
+ - spec/dead_simple_cms/configuration_spec.rb
246
+ - spec/dead_simple_cms/storage/memory_spec.rb
247
+ - spec/dead_simple_cms/storage/database_spec.rb
248
+ - spec/dead_simple_cms/storage/rails_cache_spec.rb
249
+ - spec/dead_simple_cms/storage/redis_spec.rb
250
+ - spec/dead_simple_cms/storage/base_spec.rb
234
251
  - spec/dead_simple_cms/group_spec.rb
252
+ - spec/dead_simple_cms/rails/action_view/form_builders/simple_form_with_bootstrap_spec.rb
235
253
  - spec/dead_simple_cms/rails/action_view/form_builders/default_spec.rb
236
254
  - spec/dead_simple_cms/rails/action_view/form_builders/simple_form_spec.rb
237
- - spec/dead_simple_cms/rails/action_view/form_builders/simple_form_with_bootstrap_spec.rb
238
255
  - spec/dead_simple_cms/rails/action_view/fragment_sweeper_spec.rb
239
256
  - spec/dead_simple_cms/rails/action_view/presenter_spec.rb
240
- - spec/dead_simple_cms/section/builder_spec.rb
241
- - spec/dead_simple_cms/section_spec.rb
242
- - spec/dead_simple_cms/storage/base_spec.rb
243
- - spec/dead_simple_cms/storage/database_spec.rb
244
- - spec/dead_simple_cms/storage/memory_spec.rb
245
- - spec/dead_simple_cms/storage/rails_cache_spec.rb
246
- - spec/dead_simple_cms/storage/redis_spec.rb
247
- - spec/dead_simple_cms/util/identifier/dictionary/duplciate_item_spec.rb
248
- - spec/dead_simple_cms/util/identifier/dictionary/invalid_entry_class_spec.rb
249
- - spec/dead_simple_cms/util/identifier/dictionary_spec.rb
250
- - spec/dead_simple_cms/util/identifier_spec.rb
251
257
  - spec/setup/banner_presenter.rb
252
- - spec/setup/rspec_template_builder.rb
253
258
  - spec/setup/shared.rb
259
+ - spec/setup/rspec_template_builder.rb
254
260
  - spec/setup/test_file_uploader.rb
255
261
  - spec/setup.rb
256
- - spec/spec_helper.rb