cardiac 0.2.0.pre8 → 0.2.0.pre9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cardiac/model/declarations.rb +4 -2
  3. data/lib/cardiac/railtie.rb +10 -0
  4. data/lib/cardiac/resource/builder.rb +4 -0
  5. data/lib/cardiac/util.rb +3 -2
  6. data/lib/cardiac/version.rb +1 -1
  7. data/spec/rails-3.2/Gemfile.lock +11 -11
  8. data/spec/rails-3.2/app_root/app/models/dummy.rb +7 -0
  9. data/spec/rails-3.2/app_root/log/test.log +11165 -0
  10. data/spec/rails-4.2/Gemfile +9 -0
  11. data/spec/rails-4.2/Gemfile.lock +157 -0
  12. data/spec/{rails-4.0 → rails-4.2}/Rakefile +0 -0
  13. data/spec/{rails-4.0 → rails-4.2}/app_root/app/assets/javascripts/application.js +0 -0
  14. data/spec/{rails-4.0 → rails-4.2}/app_root/app/assets/stylesheets/application.css +0 -0
  15. data/spec/{rails-4.0 → rails-4.2}/app_root/app/controllers/application_controller.rb +0 -0
  16. data/spec/{rails-4.0 → rails-4.2}/app_root/app/helpers/application_helper.rb +0 -0
  17. data/spec/rails-4.2/app_root/app/models/dummy.rb +7 -0
  18. data/spec/{rails-4.0 → rails-4.2}/app_root/app/views/layouts/application.html.erb +0 -0
  19. data/spec/{rails-4.0 → rails-4.2}/app_root/config/application.rb +0 -0
  20. data/spec/{rails-4.0 → rails-4.2}/app_root/config/boot.rb +0 -0
  21. data/spec/{rails-4.0 → rails-4.2}/app_root/config/database.yml +0 -0
  22. data/spec/{rails-4.0 → rails-4.2}/app_root/config/environment.rb +0 -0
  23. data/spec/{rails-4.0 → rails-4.2}/app_root/config/environments/development.rb +0 -0
  24. data/spec/{rails-4.0 → rails-4.2}/app_root/config/environments/production.rb +1 -1
  25. data/spec/{rails-4.0 → rails-4.2}/app_root/config/environments/test.rb +1 -1
  26. data/spec/{rails-4.0 → rails-4.2}/app_root/config/initializers/backtrace_silencers.rb +0 -0
  27. data/spec/{rails-4.0 → rails-4.2}/app_root/config/initializers/inflections.rb +0 -0
  28. data/spec/{rails-4.0 → rails-4.2}/app_root/config/initializers/mime_types.rb +0 -0
  29. data/spec/{rails-4.0 → rails-4.2}/app_root/config/initializers/secret_token.rb +0 -0
  30. data/spec/{rails-4.0 → rails-4.2}/app_root/config/initializers/session_store.rb +0 -0
  31. data/spec/{rails-4.0 → rails-4.2}/app_root/config/initializers/wrap_parameters.rb +0 -0
  32. data/spec/{rails-4.0 → rails-4.2}/app_root/config/locales/en.yml +0 -0
  33. data/spec/{rails-4.0 → rails-4.2}/app_root/config/routes.rb +0 -0
  34. data/spec/{rails-4.0 → rails-4.2}/app_root/db/test.sqlite3 +0 -0
  35. data/spec/{rails-4.0 → rails-4.2}/app_root/log/development.log +0 -0
  36. data/spec/{rails-4.0 → rails-4.2}/app_root/log/test.log +11097 -0
  37. data/spec/{rails-4.0 → rails-4.2}/app_root/public/404.html +0 -0
  38. data/spec/{rails-4.0 → rails-4.2}/app_root/public/422.html +0 -0
  39. data/spec/{rails-4.0 → rails-4.2}/app_root/public/500.html +0 -0
  40. data/spec/{rails-4.0 → rails-4.2}/app_root/public/favicon.ico +0 -0
  41. data/spec/{rails-4.0 → rails-4.2}/app_root/script/rails +0 -0
  42. data/spec/{rails-4.0 → rails-4.2}/spec/spec_helper.rb +0 -0
  43. data/spec/shared/cardiac/model/base_spec.rb +3 -360
  44. data/spec/shared/cardiac/model/declarations_spec.rb +74 -0
  45. data/spec/shared/cardiac/model/persistence_spec.rb +179 -0
  46. data/spec/shared/cardiac/model/querying_spec.rb +144 -0
  47. metadata +76 -66
  48. data/spec/rails-4.0/Gemfile +0 -9
  49. data/spec/rails-4.0/Gemfile.lock +0 -132
@@ -0,0 +1,9 @@
1
+ source 'http://rubygems.org'
2
+
3
+ gem 'sqlite3'
4
+ gem 'rails', '~> 4.2', '< 5.0'
5
+ gem 'rspec', '~> 3.1', '< 3.2'
6
+ gem 'rspec-rails', '~> 3.1', '< 3.2'
7
+ gem 'rspec-collection_matchers', '~> 1.0'
8
+ gem 'awesome_print'
9
+ gem 'cardiac', :path => '../..'
@@ -0,0 +1,157 @@
1
+ PATH
2
+ remote: ../..
3
+ specs:
4
+ cardiac (0.2.0.pre9)
5
+ active_attr (~> 0.8, >= 0.8.2)
6
+ activemodel (>= 3.2, < 5.0)
7
+ activesupport (>= 3.2, < 5.0)
8
+ i18n (~> 0.6, >= 0.6.4)
9
+ json (~> 1.8, > 1.8.0)
10
+ mime-types (~> 1.1, > 1.1)
11
+ multi_json (~> 1.0)
12
+ rack (~> 1.4, >= 1.4.5)
13
+ rack-cache (~> 1.2)
14
+ rack-client (~> 0.4, >= 0.4.2)
15
+
16
+ GEM
17
+ remote: http://rubygems.org/
18
+ specs:
19
+ actionmailer (4.2.0)
20
+ actionpack (= 4.2.0)
21
+ actionview (= 4.2.0)
22
+ activejob (= 4.2.0)
23
+ mail (~> 2.5, >= 2.5.4)
24
+ rails-dom-testing (~> 1.0, >= 1.0.5)
25
+ actionpack (4.2.0)
26
+ actionview (= 4.2.0)
27
+ activesupport (= 4.2.0)
28
+ rack (~> 1.6.0)
29
+ rack-test (~> 0.6.2)
30
+ rails-dom-testing (~> 1.0, >= 1.0.5)
31
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
32
+ actionview (4.2.0)
33
+ activesupport (= 4.2.0)
34
+ builder (~> 3.1)
35
+ erubis (~> 2.7.0)
36
+ rails-dom-testing (~> 1.0, >= 1.0.5)
37
+ rails-html-sanitizer (~> 1.0, >= 1.0.1)
38
+ active_attr (0.8.5)
39
+ activemodel (>= 3.0.2, < 5.0)
40
+ activesupport (>= 3.0.2, < 5.0)
41
+ activejob (4.2.0)
42
+ activesupport (= 4.2.0)
43
+ globalid (>= 0.3.0)
44
+ activemodel (4.2.0)
45
+ activesupport (= 4.2.0)
46
+ builder (~> 3.1)
47
+ activerecord (4.2.0)
48
+ activemodel (= 4.2.0)
49
+ activesupport (= 4.2.0)
50
+ arel (~> 6.0)
51
+ activesupport (4.2.0)
52
+ i18n (~> 0.7)
53
+ json (~> 1.7, >= 1.7.7)
54
+ minitest (~> 5.1)
55
+ thread_safe (~> 0.3, >= 0.3.4)
56
+ tzinfo (~> 1.1)
57
+ arel (6.0.0)
58
+ awesome_print (1.2.0)
59
+ builder (3.2.2)
60
+ diff-lcs (1.2.5)
61
+ erubis (2.7.0)
62
+ globalid (0.3.3)
63
+ activesupport (>= 4.1.0)
64
+ hike (1.2.3)
65
+ i18n (0.7.0)
66
+ json (1.8.2)
67
+ loofah (2.0.1)
68
+ nokogiri (>= 1.5.9)
69
+ mail (2.6.3)
70
+ mime-types (>= 1.16, < 3)
71
+ mime-types (1.25.1)
72
+ mini_portile (0.6.2)
73
+ minitest (5.5.1)
74
+ multi_json (1.11.0)
75
+ nokogiri (1.6.6.2)
76
+ mini_portile (~> 0.6.0)
77
+ rack (1.6.0)
78
+ rack-cache (1.2)
79
+ rack (>= 0.4)
80
+ rack-client (0.4.2)
81
+ rack (>= 1.0.0)
82
+ rack-test (0.6.3)
83
+ rack (>= 1.0)
84
+ rails (4.2.0)
85
+ actionmailer (= 4.2.0)
86
+ actionpack (= 4.2.0)
87
+ actionview (= 4.2.0)
88
+ activejob (= 4.2.0)
89
+ activemodel (= 4.2.0)
90
+ activerecord (= 4.2.0)
91
+ activesupport (= 4.2.0)
92
+ bundler (>= 1.3.0, < 2.0)
93
+ railties (= 4.2.0)
94
+ sprockets-rails
95
+ rails-deprecated_sanitizer (1.0.3)
96
+ activesupport (>= 4.2.0.alpha)
97
+ rails-dom-testing (1.0.5)
98
+ activesupport (>= 4.2.0.beta, < 5.0)
99
+ nokogiri (~> 1.6.0)
100
+ rails-deprecated_sanitizer (>= 1.0.1)
101
+ rails-html-sanitizer (1.0.2)
102
+ loofah (~> 2.0)
103
+ railties (4.2.0)
104
+ actionpack (= 4.2.0)
105
+ activesupport (= 4.2.0)
106
+ rake (>= 0.8.7)
107
+ thor (>= 0.18.1, < 2.0)
108
+ rake (10.4.2)
109
+ rspec (3.1.0)
110
+ rspec-core (~> 3.1.0)
111
+ rspec-expectations (~> 3.1.0)
112
+ rspec-mocks (~> 3.1.0)
113
+ rspec-collection_matchers (1.0.0)
114
+ rspec-expectations (>= 2.99.0.beta1)
115
+ rspec-core (3.1.7)
116
+ rspec-support (~> 3.1.0)
117
+ rspec-expectations (3.1.2)
118
+ diff-lcs (>= 1.2.0, < 2.0)
119
+ rspec-support (~> 3.1.0)
120
+ rspec-mocks (3.1.3)
121
+ rspec-support (~> 3.1.0)
122
+ rspec-rails (3.1.0)
123
+ actionpack (>= 3.0)
124
+ activesupport (>= 3.0)
125
+ railties (>= 3.0)
126
+ rspec-core (~> 3.1.0)
127
+ rspec-expectations (~> 3.1.0)
128
+ rspec-mocks (~> 3.1.0)
129
+ rspec-support (~> 3.1.0)
130
+ rspec-support (3.1.2)
131
+ sprockets (2.12.3)
132
+ hike (~> 1.2)
133
+ multi_json (~> 1.0)
134
+ rack (~> 1.0)
135
+ tilt (~> 1.1, != 1.3.0)
136
+ sprockets-rails (2.2.4)
137
+ actionpack (>= 3.0)
138
+ activesupport (>= 3.0)
139
+ sprockets (>= 2.8, < 4.0)
140
+ sqlite3 (1.3.9)
141
+ thor (0.19.1)
142
+ thread_safe (0.3.5)
143
+ tilt (1.4.1)
144
+ tzinfo (1.2.2)
145
+ thread_safe (~> 0.1)
146
+
147
+ PLATFORMS
148
+ ruby
149
+
150
+ DEPENDENCIES
151
+ awesome_print
152
+ cardiac!
153
+ rails (~> 4.2, < 5.0)
154
+ rspec (~> 3.1, < 3.2)
155
+ rspec-collection_matchers (~> 1.0)
156
+ rspec-rails (~> 3.1, < 3.2)
157
+ sqlite3
File without changes
@@ -0,0 +1,7 @@
1
+ class Dummy < Cardiac::Model::Base
2
+ self.base_resource = 'http://localhost/dummy'
3
+
4
+ attribute :id, type: Integer
5
+ attribute :name, type: String
6
+
7
+ end
@@ -2,7 +2,7 @@ CardiacTest::Application.configure do
2
2
  config.cache_classes = true
3
3
  config.consider_all_requests_local = false
4
4
  config.action_controller.perform_caching = true
5
- config.serve_static_assets = false
5
+ config.serve_static_files = false
6
6
  config.assets.compress = true
7
7
  config.assets.compile = false
8
8
  config.assets.digest = true
@@ -1,6 +1,6 @@
1
1
  CardiacTest::Application.configure do
2
2
  config.cache_classes = true
3
- config.serve_static_assets = true
3
+ config.serve_static_files = true
4
4
  config.static_cache_control = "public, max-age=3600"
5
5
  config.consider_all_requests_local = true
6
6
  config.action_controller.perform_caching = false