citier4 0.0.5 → 0.0.6
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 +4 -4
- data/lib/citier4/CHANGELOG +2 -0
- data/lib/citier4/acts_as_citier4.rb +1 -1
- data/lib/citier4/child_instance_methods.rb +40 -25
- data/lib/citier4/core_ext.rb +37 -11
- data/lib/citier4/instance_methods.rb +34 -1
- data/lib/citier4/root_class_methods.rb +2 -4
- data/lib/citier4/root_instance_methods.rb +4 -1
- data/lib/citier4/version.rb +1 -1
- data/test/changed_test.rb +1 -0
- data/test/child_instance_methods_test.rb +1 -1
- data/test/dummy/app/models/Foo.rb +14 -0
- data/test/dummy/app/models/bidule.rb +8 -0
- data/test/dummy/app/models/product.rb +155 -0
- data/test/dummy/db/migrate/20151219171159_add_price_to_books.rb +8 -0
- data/test/dummy/db/migrate/CHANGELOG +0 -0
- data/test/dummy/db/schema.rb +12 -10
- data/test/dummy/log/development.log +877 -0
- data/test/dummy/log/test.log +79011 -0
- data/test/root_instance_methods_test.rb +2 -2
- data/test/saving_methods_test.rb +0 -1
- metadata +14 -7
|
@@ -4,13 +4,13 @@ class RootInstanceMethods < ActiveSupport::TestCase
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
test "product instance is root" do
|
|
7
|
-
assert Product.new.is_root?
|
|
7
|
+
assert Product.new(name: 'a product').is_root?
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
test "herited prodcut class instance is not root" do
|
|
11
11
|
class Something < Product
|
|
12
12
|
end
|
|
13
|
-
assert_not Something.new.is_root?
|
|
13
|
+
assert_not Something.new(name: 'something').is_root?
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
test "delete all" do
|
data/test/saving_methods_test.rb
CHANGED
|
@@ -28,7 +28,6 @@ class SavingMethods < ActiveSupport::TestCase
|
|
|
28
28
|
test "update in child with valid? " do
|
|
29
29
|
|
|
30
30
|
book = Book.create name: "UnNom", author: "UnAuteur"
|
|
31
|
-
debugger
|
|
32
31
|
puts "product name: #{book.name}, author: #{book.author}"
|
|
33
32
|
newAuthor ="CeciEstUnNouveauAuteur"
|
|
34
33
|
book.author = newAuthor
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: citier4
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Laurent Buffat, Orignally From Peter Hamilton and others, Originally from Laurent
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-12-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -17,26 +17,26 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: 4.2
|
|
20
|
+
version: '4.2'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: 4.2
|
|
27
|
+
version: '4.2'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: sqlite3
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
|
32
|
-
- - "
|
|
32
|
+
- - "~>"
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
34
|
version: '0'
|
|
35
35
|
type: :development
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
|
-
- - "
|
|
39
|
+
- - "~>"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: '0'
|
|
42
42
|
description: |-
|
|
@@ -53,6 +53,7 @@ files:
|
|
|
53
53
|
- README.rdoc
|
|
54
54
|
- Rakefile
|
|
55
55
|
- lib/citier4.rb
|
|
56
|
+
- lib/citier4/CHANGELOG
|
|
56
57
|
- lib/citier4/acts_as_citier4.rb
|
|
57
58
|
- lib/citier4/child_instance_methods.rb
|
|
58
59
|
- lib/citier4/core_ext.rb
|
|
@@ -75,6 +76,7 @@ files:
|
|
|
75
76
|
- test/dummy/app/assets/stylesheets/application.css
|
|
76
77
|
- test/dummy/app/controllers/application_controller.rb
|
|
77
78
|
- test/dummy/app/helpers/application_helper.rb
|
|
79
|
+
- test/dummy/app/models/Foo.rb
|
|
78
80
|
- test/dummy/app/models/animal.rb
|
|
79
81
|
- test/dummy/app/models/bidule.rb
|
|
80
82
|
- test/dummy/app/models/book.rb
|
|
@@ -111,6 +113,8 @@ files:
|
|
|
111
113
|
- test/dummy/db/migrate/20150101181916_create_fictions.rb
|
|
112
114
|
- test/dummy/db/migrate/20150102200342_create_bidules.rb
|
|
113
115
|
- test/dummy/db/migrate/20150102200786_create_animals.rb
|
|
116
|
+
- test/dummy/db/migrate/20151219171159_add_price_to_books.rb
|
|
117
|
+
- test/dummy/db/migrate/CHANGELOG
|
|
114
118
|
- test/dummy/db/schema.rb
|
|
115
119
|
- test/dummy/db/test.sqlite3
|
|
116
120
|
- test/dummy/log/development.log
|
|
@@ -155,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
159
|
version: '0'
|
|
156
160
|
requirements: []
|
|
157
161
|
rubyforge_project:
|
|
158
|
-
rubygems_version: 2.4.
|
|
162
|
+
rubygems_version: 2.4.8
|
|
159
163
|
signing_key:
|
|
160
164
|
specification_version: 4
|
|
161
165
|
summary: 'IN DEVELOPPEMENT, Not for use! Citier4 : Citier for Rails 4'
|
|
@@ -176,6 +180,7 @@ test_files:
|
|
|
176
180
|
- test/dummy/app/models/book.rb
|
|
177
181
|
- test/dummy/app/models/dictionary.rb
|
|
178
182
|
- test/dummy/app/models/fiction.rb
|
|
183
|
+
- test/dummy/app/models/Foo.rb
|
|
179
184
|
- test/dummy/app/models/product.rb
|
|
180
185
|
- test/dummy/app/views/layouts/application.html.erb
|
|
181
186
|
- test/dummy/bin/bundle
|
|
@@ -207,6 +212,8 @@ test_files:
|
|
|
207
212
|
- test/dummy/db/migrate/20150101181916_create_fictions.rb
|
|
208
213
|
- test/dummy/db/migrate/20150102200342_create_bidules.rb
|
|
209
214
|
- test/dummy/db/migrate/20150102200786_create_animals.rb
|
|
215
|
+
- test/dummy/db/migrate/20151219171159_add_price_to_books.rb
|
|
216
|
+
- test/dummy/db/migrate/CHANGELOG
|
|
210
217
|
- test/dummy/db/schema.rb
|
|
211
218
|
- test/dummy/db/test.sqlite3
|
|
212
219
|
- test/dummy/log/development.log
|