platform 3.1.3 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/.rvmrc +1 -1
  2. data/Gemfile.lock +100 -103
  3. data/app/models/platform/application.rb +109 -57
  4. data/app/models/platform/application_category.rb +41 -22
  5. data/app/models/platform/application_developer.rb +39 -22
  6. data/app/models/platform/application_filter.rb +41 -22
  7. data/app/models/platform/application_log.rb +48 -22
  8. data/app/models/platform/application_log_filter.rb +41 -22
  9. data/app/models/platform/application_metric.rb +42 -23
  10. data/app/models/platform/application_metric_filter.rb +41 -22
  11. data/app/models/platform/application_permission.rb +38 -22
  12. data/app/models/platform/application_permission_filter.rb +41 -22
  13. data/app/models/platform/application_usage_metric.rb +43 -22
  14. data/app/models/platform/application_usage_metric_filter.rb +41 -22
  15. data/app/models/platform/application_user.rb +40 -22
  16. data/app/models/platform/application_user_filter.rb +41 -22
  17. data/app/models/platform/base_filter.rb +41 -22
  18. data/app/models/platform/category.rb +43 -22
  19. data/app/models/platform/daily_application_metric.rb +41 -22
  20. data/app/models/platform/developer.rb +42 -22
  21. data/app/models/platform/developer_filter.rb +41 -22
  22. data/app/models/platform/forum_message.rb +40 -22
  23. data/app/models/platform/forum_message_filter.rb +41 -22
  24. data/app/models/platform/forum_topic.rb +41 -22
  25. data/app/models/platform/forum_topic_filter.rb +41 -22
  26. data/app/models/platform/logged_exception.rb +47 -22
  27. data/app/models/platform/logged_exception_filter.rb +41 -22
  28. data/app/models/platform/monthly_application_metric.rb +41 -22
  29. data/app/models/platform/permission.rb +38 -22
  30. data/app/models/platform/rating.rb +42 -22
  31. data/app/models/platform/rating_filter.rb +41 -22
  32. data/app/models/platform/rollup_log.rb +39 -22
  33. data/app/models/platform/rollup_log_filter.rb +41 -22
  34. data/app/models/platform/total_application_metric.rb +41 -22
  35. data/app/models/platform/weekly_application_metric.rb +41 -22
  36. data/app/views/platform/developer/api_explorer/index.html.erb +4 -4
  37. data/app/views/platform/developer/apps/index.html.erb +5 -2
  38. data/lib/platform/config.rb +4 -0
  39. data/lib/platform/version.rb +1 -1
  40. data/lib/tasks/dev.rake +154 -0
  41. data/platform.gemspec +5 -6
  42. data/test/dummy/config/application.rb +2 -2
  43. metadata +46 -60
@@ -22,14 +22,13 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.licenses = ['MIT']
24
24
 
25
- s.add_dependency 'rails', ['>= 3.1.0']
26
- s.add_dependency 'will_filter', ['>= 3.1.2']
27
- s.add_dependency 'tr8n', ['>= 3.1.1']
25
+ s.add_dependency 'rails', ['>= 3.2.3']
26
+ s.add_dependency 'will_filter', ['>= 3.1.6']
27
+ s.add_dependency 'tr8n', ['>= 3.2.3']
28
28
  s.add_dependency 'kaminari', ['>= 0']
29
29
  s.add_dependency 'sass', ['>= 0']
30
- s.add_dependency 'coffee-script', ['>= 0']
31
- s.add_dependency 'acts_as_tree', ['>= 0']
32
- s.add_dependency 'acts_as_state_machine', ['>= 0']
30
+ s.add_dependency 'acts_as_tree_rails3', ['>= 0']
31
+ s.add_dependency 'aasm', ['>= 0']
33
32
  s.add_development_dependency 'pry', ['>= 0']
34
33
  s.add_development_dependency 'bundler', ['>= 1.0.0']
35
34
  s.add_development_dependency 'sqlite3', ['>= 0']
@@ -7,8 +7,8 @@ require "will_filter"
7
7
  require "tr8n"
8
8
  require "kaminari"
9
9
  require "platform"
10
- require "acts_as_tree"
11
- require "acts_as_state_machine"
10
+ require "acts_as_tree_rails3"
11
+ require "aasm"
12
12
 
13
13
  module Dummy
14
14
  class Application < Rails::Application
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platform
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,44 +9,44 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000Z
12
+ date: 2012-04-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2165063880 !ruby/object:Gem::Requirement
16
+ requirement: &2166383360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 3.1.0
21
+ version: 3.2.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2165063880
24
+ version_requirements: *2166383360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: will_filter
27
- requirement: &2165063300 !ruby/object:Gem::Requirement
27
+ requirement: &2166382820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 3.1.2
32
+ version: 3.1.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2165063300
35
+ version_requirements: *2166382820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: tr8n
38
- requirement: &2165062800 !ruby/object:Gem::Requirement
38
+ requirement: &2166382300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: 3.1.1
43
+ version: 3.2.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2165062800
46
+ version_requirements: *2166382300
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: kaminari
49
- requirement: &2165062320 !ruby/object:Gem::Requirement
49
+ requirement: &2166381740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2165062320
57
+ version_requirements: *2166381740
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sass
60
- requirement: &2165061800 !ruby/object:Gem::Requirement
60
+ requirement: &2166381060 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2165061800
68
+ version_requirements: *2166381060
69
69
  - !ruby/object:Gem::Dependency
70
- name: coffee-script
71
- requirement: &2165061280 !ruby/object:Gem::Requirement
70
+ name: acts_as_tree_rails3
71
+ requirement: &2166380460 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *2165061280
79
+ version_requirements: *2166380460
80
80
  - !ruby/object:Gem::Dependency
81
- name: acts_as_tree
82
- requirement: &2165060800 !ruby/object:Gem::Requirement
81
+ name: aasm
82
+ requirement: &2166379920 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,21 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *2165060800
91
- - !ruby/object:Gem::Dependency
92
- name: acts_as_state_machine
93
- requirement: &2165060240 !ruby/object:Gem::Requirement
94
- none: false
95
- requirements:
96
- - - ! '>='
97
- - !ruby/object:Gem::Version
98
- version: '0'
99
- type: :runtime
100
- prerelease: false
101
- version_requirements: *2165060240
90
+ version_requirements: *2166379920
102
91
  - !ruby/object:Gem::Dependency
103
92
  name: pry
104
- requirement: &2165059720 !ruby/object:Gem::Requirement
93
+ requirement: &2166379360 !ruby/object:Gem::Requirement
105
94
  none: false
106
95
  requirements:
107
96
  - - ! '>='
@@ -109,10 +98,10 @@ dependencies:
109
98
  version: '0'
110
99
  type: :development
111
100
  prerelease: false
112
- version_requirements: *2165059720
101
+ version_requirements: *2166379360
113
102
  - !ruby/object:Gem::Dependency
114
103
  name: bundler
115
- requirement: &2165059220 !ruby/object:Gem::Requirement
104
+ requirement: &2166378820 !ruby/object:Gem::Requirement
116
105
  none: false
117
106
  requirements:
118
107
  - - ! '>='
@@ -120,10 +109,10 @@ dependencies:
120
109
  version: 1.0.0
121
110
  type: :development
122
111
  prerelease: false
123
- version_requirements: *2165059220
112
+ version_requirements: *2166378820
124
113
  - !ruby/object:Gem::Dependency
125
114
  name: sqlite3
126
- requirement: &2165058720 !ruby/object:Gem::Requirement
115
+ requirement: &2166378240 !ruby/object:Gem::Requirement
127
116
  none: false
128
117
  requirements:
129
118
  - - ! '>='
@@ -131,10 +120,10 @@ dependencies:
131
120
  version: '0'
132
121
  type: :development
133
122
  prerelease: false
134
- version_requirements: *2165058720
123
+ version_requirements: *2166378240
135
124
  - !ruby/object:Gem::Dependency
136
125
  name: rspec
137
- requirement: &2165058240 !ruby/object:Gem::Requirement
126
+ requirement: &2166377720 !ruby/object:Gem::Requirement
138
127
  none: false
139
128
  requirements:
140
129
  - - ! '>='
@@ -142,10 +131,10 @@ dependencies:
142
131
  version: '0'
143
132
  type: :development
144
133
  prerelease: false
145
- version_requirements: *2165058240
134
+ version_requirements: *2166377720
146
135
  - !ruby/object:Gem::Dependency
147
136
  name: rspec-rails
148
- requirement: &2165057720 !ruby/object:Gem::Requirement
137
+ requirement: &2166377220 !ruby/object:Gem::Requirement
149
138
  none: false
150
139
  requirements:
151
140
  - - ! '>='
@@ -153,10 +142,10 @@ dependencies:
153
142
  version: '0'
154
143
  type: :development
155
144
  prerelease: false
156
- version_requirements: *2165057720
145
+ version_requirements: *2166377220
157
146
  - !ruby/object:Gem::Dependency
158
147
  name: factory_girl
159
- requirement: &2165057220 !ruby/object:Gem::Requirement
148
+ requirement: &2166376680 !ruby/object:Gem::Requirement
160
149
  none: false
161
150
  requirements:
162
151
  - - ! '>='
@@ -164,10 +153,10 @@ dependencies:
164
153
  version: '0'
165
154
  type: :development
166
155
  prerelease: false
167
- version_requirements: *2165057220
156
+ version_requirements: *2166376680
168
157
  - !ruby/object:Gem::Dependency
169
158
  name: rr
170
- requirement: &2165056640 !ruby/object:Gem::Requirement
159
+ requirement: &2166376200 !ruby/object:Gem::Requirement
171
160
  none: false
172
161
  requirements:
173
162
  - - ! '>='
@@ -175,10 +164,10 @@ dependencies:
175
164
  version: '0'
176
165
  type: :development
177
166
  prerelease: false
178
- version_requirements: *2165056640
167
+ version_requirements: *2166376200
179
168
  - !ruby/object:Gem::Dependency
180
169
  name: steak
181
- requirement: &2165056120 !ruby/object:Gem::Requirement
170
+ requirement: &2166375700 !ruby/object:Gem::Requirement
182
171
  none: false
183
172
  requirements:
184
173
  - - ! '>='
@@ -186,10 +175,10 @@ dependencies:
186
175
  version: '0'
187
176
  type: :development
188
177
  prerelease: false
189
- version_requirements: *2165056120
178
+ version_requirements: *2166375700
190
179
  - !ruby/object:Gem::Dependency
191
180
  name: capybara
192
- requirement: &2165055600 !ruby/object:Gem::Requirement
181
+ requirement: &2166375200 !ruby/object:Gem::Requirement
193
182
  none: false
194
183
  requirements:
195
184
  - - ! '>='
@@ -197,10 +186,10 @@ dependencies:
197
186
  version: '0'
198
187
  type: :development
199
188
  prerelease: false
200
- version_requirements: *2165055600
189
+ version_requirements: *2166375200
201
190
  - !ruby/object:Gem::Dependency
202
191
  name: database_cleaner
203
- requirement: &2165055020 !ruby/object:Gem::Requirement
192
+ requirement: &2166374700 !ruby/object:Gem::Requirement
204
193
  none: false
205
194
  requirements:
206
195
  - - ! '>='
@@ -208,10 +197,10 @@ dependencies:
208
197
  version: '0'
209
198
  type: :development
210
199
  prerelease: false
211
- version_requirements: *2165055020
200
+ version_requirements: *2166374700
212
201
  - !ruby/object:Gem::Dependency
213
202
  name: memcache-client
214
- requirement: &2165054480 !ruby/object:Gem::Requirement
203
+ requirement: &2166374200 !ruby/object:Gem::Requirement
215
204
  none: false
216
205
  requirements:
217
206
  - - ! '>='
@@ -219,7 +208,7 @@ dependencies:
219
208
  version: 1.8.5
220
209
  type: :development
221
210
  prerelease: false
222
- version_requirements: *2165054480
211
+ version_requirements: *2166374200
223
212
  description: This gem provides all necessary tools to make a Rails application into
224
213
  a platform with third party applications.
225
214
  email:
@@ -603,6 +592,7 @@ files:
603
592
  - lib/platform/random_password_generator.rb
604
593
  - lib/platform/simple_string_permissions.rb
605
594
  - lib/platform/version.rb
595
+ - lib/tasks/dev.rake
606
596
  - lib/tasks/platform.rake
607
597
  - platform.gemspec
608
598
  - script/rails
@@ -618,8 +608,6 @@ files:
618
608
  - test/dummy/.sass-cache/705804a107da6d4468e6ec1739646560bc92a387/exporter.css.scssc
619
609
  - test/dummy/.sass-cache/705804a107da6d4468e6ec1739646560bc92a387/filter.css.scssc
620
610
  - test/dummy/.sass-cache/705804a107da6d4468e6ec1739646560bc92a387/results.css.scssc
621
- - test/dummy/.sass-cache/a08d27d603cebe0b6d72ea1ea3ff687bbe7f4320/api_explorer.css.scssc
622
- - test/dummy/.sass-cache/a08d27d603cebe0b6d72ea1ea3ff687bbe7f4320/platform.css.scssc
623
611
  - test/dummy/.sass-cache/d0d8b4cf192be2f5e4f0d6f68f882c96fb12352c/tr8n.css.scssc
624
612
  - test/dummy/.sass-cache/e5c817e2577b8fb5a2754597946713f7fa749dcd/components.css.scssc
625
613
  - test/dummy/.sass-cache/e5c817e2577b8fb5a2754597946713f7fa749dcd/layout.css.scssc
@@ -750,7 +738,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
750
738
  version: '0'
751
739
  segments:
752
740
  - 0
753
- hash: -2101132090142362986
741
+ hash: -3798455589195611959
754
742
  required_rubygems_version: !ruby/object:Gem::Requirement
755
743
  none: false
756
744
  requirements:
@@ -759,7 +747,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
759
747
  version: '0'
760
748
  segments:
761
749
  - 0
762
- hash: -2101132090142362986
750
+ hash: -3798455589195611959
763
751
  requirements: []
764
752
  rubyforge_project: platform
765
753
  rubygems_version: 1.8.11
@@ -780,8 +768,6 @@ test_files:
780
768
  - test/dummy/.sass-cache/705804a107da6d4468e6ec1739646560bc92a387/exporter.css.scssc
781
769
  - test/dummy/.sass-cache/705804a107da6d4468e6ec1739646560bc92a387/filter.css.scssc
782
770
  - test/dummy/.sass-cache/705804a107da6d4468e6ec1739646560bc92a387/results.css.scssc
783
- - test/dummy/.sass-cache/a08d27d603cebe0b6d72ea1ea3ff687bbe7f4320/api_explorer.css.scssc
784
- - test/dummy/.sass-cache/a08d27d603cebe0b6d72ea1ea3ff687bbe7f4320/platform.css.scssc
785
771
  - test/dummy/.sass-cache/d0d8b4cf192be2f5e4f0d6f68f882c96fb12352c/tr8n.css.scssc
786
772
  - test/dummy/.sass-cache/e5c817e2577b8fb5a2754597946713f7fa749dcd/components.css.scssc
787
773
  - test/dummy/.sass-cache/e5c817e2577b8fb5a2754597946713f7fa749dcd/layout.css.scssc