instedd-pigeon 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/.gitignore +25 -0
  2. data/.rvmrc +1 -0
  3. data/Gemfile +9 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +140 -0
  6. data/Rakefile +1 -0
  7. data/app/assets/images/pigeon/android_local_gateway_preview.png +0 -0
  8. data/app/assets/images/pigeon/android_local_gateway_qr.png +0 -0
  9. data/app/assets/images/pigeon/other_local_gateway_preview.png +0 -0
  10. data/app/assets/javascripts/pigeon/qst-server-wizard.js.coffee +58 -0
  11. data/app/assets/javascripts/pigeon/template.js.coffee +43 -0
  12. data/app/assets/javascripts/pigeon/twitter-template.js.coffee +38 -0
  13. data/app/assets/javascripts/pigeon/wizard.js.coffee +95 -0
  14. data/app/assets/javascripts/pigeon.js +2 -0
  15. data/app/assets/stylesheets/pigeon.css.sass +13 -0
  16. data/app/controllers/pigeon/twitter_controller.rb +44 -0
  17. data/app/helpers/.gitkeep +0 -0
  18. data/app/helpers/pigeon/channel_helper.rb +93 -0
  19. data/app/helpers/pigeon/renderer/base.rb +172 -0
  20. data/app/helpers/pigeon/renderer/channel_renderer.rb +58 -0
  21. data/app/helpers/pigeon/renderer.rb +8 -0
  22. data/app/helpers/pigeon/tag_helper.rb +26 -0
  23. data/app/helpers/pigeon/template_helper.rb +20 -0
  24. data/app/helpers/pigeon/text_helper.rb +16 -0
  25. data/app/models/.gitkeep +0 -0
  26. data/app/models/pigeon/channel.rb +220 -0
  27. data/app/models/pigeon/channel_attribute.rb +64 -0
  28. data/app/models/pigeon/channel_schema.rb +113 -0
  29. data/app/models/pigeon/nested_attribute.rb +23 -0
  30. data/app/models/pigeon/nested_scopes.rb +34 -0
  31. data/app/models/pigeon/nuntium_channel.rb +92 -0
  32. data/app/models/pigeon/verboice_channel.rb +82 -0
  33. data/app/views/pigeon/twitter/callback.html.erb +6 -0
  34. data/config/routes.rb +4 -0
  35. data/config/schemas/nuntium/nuntium.yml +210 -0
  36. data/config/schemas/nuntium/qst-server.yml +180 -0
  37. data/config/schemas/nuntium/twitter.yml +56 -0
  38. data/config/schemas/verboice/verboice.yml +76 -0
  39. data/lib/pigeon/engine.rb +30 -0
  40. data/lib/pigeon/errors.rb +28 -0
  41. data/lib/pigeon/initializer.rb +13 -0
  42. data/lib/pigeon/nuntium.rb +10 -0
  43. data/lib/pigeon/verboice.rb +10 -0
  44. data/lib/pigeon/version.rb +3 -0
  45. data/lib/pigeon.rb +25 -0
  46. data/pigeon.gemspec +24 -0
  47. data/spec/data/test_schemas.yml +21 -0
  48. data/spec/dummy/README.rdoc +261 -0
  49. data/spec/dummy/Rakefile +7 -0
  50. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  51. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  52. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  53. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  54. data/spec/dummy/app/mailers/.gitkeep +0 -0
  55. data/spec/dummy/app/models/.gitkeep +0 -0
  56. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  57. data/spec/dummy/config/application.rb +59 -0
  58. data/spec/dummy/config/boot.rb +10 -0
  59. data/spec/dummy/config/database.yml +25 -0
  60. data/spec/dummy/config/environment.rb +5 -0
  61. data/spec/dummy/config/environments/development.rb +37 -0
  62. data/spec/dummy/config/environments/production.rb +67 -0
  63. data/spec/dummy/config/environments/test.rb +37 -0
  64. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  65. data/spec/dummy/config/initializers/inflections.rb +15 -0
  66. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  67. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  68. data/spec/dummy/config/initializers/session_store.rb +8 -0
  69. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  70. data/spec/dummy/config/locales/en.yml +5 -0
  71. data/spec/dummy/config/routes.rb +3 -0
  72. data/spec/dummy/config.ru +4 -0
  73. data/spec/dummy/lib/assets/.gitkeep +0 -0
  74. data/spec/dummy/log/.gitkeep +0 -0
  75. data/spec/dummy/public/404.html +26 -0
  76. data/spec/dummy/public/422.html +26 -0
  77. data/spec/dummy/public/500.html +25 -0
  78. data/spec/dummy/public/favicon.ico +0 -0
  79. data/spec/dummy/script/rails +6 -0
  80. data/spec/helpers/pigeon/channel_helper_spec.rb +173 -0
  81. data/spec/helpers/pigeon/renderer/base_spec.rb +109 -0
  82. data/spec/helpers/pigeon/renderer/channel_renderer_spec.rb +61 -0
  83. data/spec/helpers/pigeon/tag_helper_spec.rb +36 -0
  84. data/spec/helpers/pigeon/template_helper_spec.rb +57 -0
  85. data/spec/models/pigeon/channel_attribute_spec.rb +98 -0
  86. data/spec/models/pigeon/channel_schema_spec.rb +63 -0
  87. data/spec/models/pigeon/channel_spec.rb +205 -0
  88. data/spec/models/pigeon/nuntium_channel_spec.rb +53 -0
  89. data/spec/spec_helper.rb +43 -0
  90. data/spec/support/active_model_lint.rb +15 -0
  91. data/spec/support/test_schemas.rb +12 -0
  92. metadata +254 -0
metadata ADDED
@@ -0,0 +1,254 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: instedd-pigeon
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ary Borenszweig
9
+ - Gustavo Giráldez
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-04-15 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rails
17
+ requirement: !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 3.2.12
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: 3.2.12
31
+ - !ruby/object:Gem::Dependency
32
+ name: nuntium_api
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: '0.19'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '0.19'
47
+ - !ruby/object:Gem::Dependency
48
+ name: verboice
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.7.0
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - '='
61
+ - !ruby/object:Gem::Version
62
+ version: 0.7.0
63
+ - !ruby/object:Gem::Dependency
64
+ name: twitter_oauth
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ type: :runtime
72
+ prerelease: false
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ description: Channel management frontend for Nuntium & Verboice
80
+ email:
81
+ - aborenszweig@manas.com.ar
82
+ - ggiraldez@manas.com.ar
83
+ executables: []
84
+ extensions: []
85
+ extra_rdoc_files: []
86
+ files:
87
+ - .gitignore
88
+ - .rvmrc
89
+ - Gemfile
90
+ - LICENSE.txt
91
+ - README.md
92
+ - Rakefile
93
+ - app/assets/images/pigeon/android_local_gateway_preview.png
94
+ - app/assets/images/pigeon/android_local_gateway_qr.png
95
+ - app/assets/images/pigeon/other_local_gateway_preview.png
96
+ - app/assets/javascripts/pigeon.js
97
+ - app/assets/javascripts/pigeon/qst-server-wizard.js.coffee
98
+ - app/assets/javascripts/pigeon/template.js.coffee
99
+ - app/assets/javascripts/pigeon/twitter-template.js.coffee
100
+ - app/assets/javascripts/pigeon/wizard.js.coffee
101
+ - app/assets/stylesheets/pigeon.css.sass
102
+ - app/controllers/pigeon/twitter_controller.rb
103
+ - app/helpers/.gitkeep
104
+ - app/helpers/pigeon/channel_helper.rb
105
+ - app/helpers/pigeon/renderer.rb
106
+ - app/helpers/pigeon/renderer/base.rb
107
+ - app/helpers/pigeon/renderer/channel_renderer.rb
108
+ - app/helpers/pigeon/tag_helper.rb
109
+ - app/helpers/pigeon/template_helper.rb
110
+ - app/helpers/pigeon/text_helper.rb
111
+ - app/models/.gitkeep
112
+ - app/models/pigeon/channel.rb
113
+ - app/models/pigeon/channel_attribute.rb
114
+ - app/models/pigeon/channel_schema.rb
115
+ - app/models/pigeon/nested_attribute.rb
116
+ - app/models/pigeon/nested_scopes.rb
117
+ - app/models/pigeon/nuntium_channel.rb
118
+ - app/models/pigeon/verboice_channel.rb
119
+ - app/views/pigeon/twitter/callback.html.erb
120
+ - config/routes.rb
121
+ - config/schemas/nuntium/nuntium.yml
122
+ - config/schemas/nuntium/qst-server.yml
123
+ - config/schemas/nuntium/twitter.yml
124
+ - config/schemas/verboice/verboice.yml
125
+ - lib/pigeon.rb
126
+ - lib/pigeon/engine.rb
127
+ - lib/pigeon/errors.rb
128
+ - lib/pigeon/initializer.rb
129
+ - lib/pigeon/nuntium.rb
130
+ - lib/pigeon/verboice.rb
131
+ - lib/pigeon/version.rb
132
+ - pigeon.gemspec
133
+ - spec/data/test_schemas.yml
134
+ - spec/dummy/README.rdoc
135
+ - spec/dummy/Rakefile
136
+ - spec/dummy/app/assets/javascripts/application.js
137
+ - spec/dummy/app/assets/stylesheets/application.css
138
+ - spec/dummy/app/controllers/application_controller.rb
139
+ - spec/dummy/app/helpers/application_helper.rb
140
+ - spec/dummy/app/mailers/.gitkeep
141
+ - spec/dummy/app/models/.gitkeep
142
+ - spec/dummy/app/views/layouts/application.html.erb
143
+ - spec/dummy/config.ru
144
+ - spec/dummy/config/application.rb
145
+ - spec/dummy/config/boot.rb
146
+ - spec/dummy/config/database.yml
147
+ - spec/dummy/config/environment.rb
148
+ - spec/dummy/config/environments/development.rb
149
+ - spec/dummy/config/environments/production.rb
150
+ - spec/dummy/config/environments/test.rb
151
+ - spec/dummy/config/initializers/backtrace_silencers.rb
152
+ - spec/dummy/config/initializers/inflections.rb
153
+ - spec/dummy/config/initializers/mime_types.rb
154
+ - spec/dummy/config/initializers/secret_token.rb
155
+ - spec/dummy/config/initializers/session_store.rb
156
+ - spec/dummy/config/initializers/wrap_parameters.rb
157
+ - spec/dummy/config/locales/en.yml
158
+ - spec/dummy/config/routes.rb
159
+ - spec/dummy/lib/assets/.gitkeep
160
+ - spec/dummy/log/.gitkeep
161
+ - spec/dummy/public/404.html
162
+ - spec/dummy/public/422.html
163
+ - spec/dummy/public/500.html
164
+ - spec/dummy/public/favicon.ico
165
+ - spec/dummy/script/rails
166
+ - spec/helpers/pigeon/channel_helper_spec.rb
167
+ - spec/helpers/pigeon/renderer/base_spec.rb
168
+ - spec/helpers/pigeon/renderer/channel_renderer_spec.rb
169
+ - spec/helpers/pigeon/tag_helper_spec.rb
170
+ - spec/helpers/pigeon/template_helper_spec.rb
171
+ - spec/models/pigeon/channel_attribute_spec.rb
172
+ - spec/models/pigeon/channel_schema_spec.rb
173
+ - spec/models/pigeon/channel_spec.rb
174
+ - spec/models/pigeon/nuntium_channel_spec.rb
175
+ - spec/spec_helper.rb
176
+ - spec/support/active_model_lint.rb
177
+ - spec/support/test_schemas.rb
178
+ homepage: https://bitbucket.org/instedd/pigeon
179
+ licenses: []
180
+ post_install_message:
181
+ rdoc_options: []
182
+ require_paths:
183
+ - lib
184
+ required_ruby_version: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ segments:
191
+ - 0
192
+ hash: 33093793
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
194
+ none: false
195
+ requirements:
196
+ - - ! '>='
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ segments:
200
+ - 0
201
+ hash: 33093793
202
+ requirements: []
203
+ rubyforge_project:
204
+ rubygems_version: 1.8.25
205
+ signing_key:
206
+ specification_version: 3
207
+ summary: This gem handles creating, updating and destroying channels in Nuntium and
208
+ Verboice for your Rails application.
209
+ test_files:
210
+ - spec/data/test_schemas.yml
211
+ - spec/dummy/README.rdoc
212
+ - spec/dummy/Rakefile
213
+ - spec/dummy/app/assets/javascripts/application.js
214
+ - spec/dummy/app/assets/stylesheets/application.css
215
+ - spec/dummy/app/controllers/application_controller.rb
216
+ - spec/dummy/app/helpers/application_helper.rb
217
+ - spec/dummy/app/mailers/.gitkeep
218
+ - spec/dummy/app/models/.gitkeep
219
+ - spec/dummy/app/views/layouts/application.html.erb
220
+ - spec/dummy/config.ru
221
+ - spec/dummy/config/application.rb
222
+ - spec/dummy/config/boot.rb
223
+ - spec/dummy/config/database.yml
224
+ - spec/dummy/config/environment.rb
225
+ - spec/dummy/config/environments/development.rb
226
+ - spec/dummy/config/environments/production.rb
227
+ - spec/dummy/config/environments/test.rb
228
+ - spec/dummy/config/initializers/backtrace_silencers.rb
229
+ - spec/dummy/config/initializers/inflections.rb
230
+ - spec/dummy/config/initializers/mime_types.rb
231
+ - spec/dummy/config/initializers/secret_token.rb
232
+ - spec/dummy/config/initializers/session_store.rb
233
+ - spec/dummy/config/initializers/wrap_parameters.rb
234
+ - spec/dummy/config/locales/en.yml
235
+ - spec/dummy/config/routes.rb
236
+ - spec/dummy/lib/assets/.gitkeep
237
+ - spec/dummy/log/.gitkeep
238
+ - spec/dummy/public/404.html
239
+ - spec/dummy/public/422.html
240
+ - spec/dummy/public/500.html
241
+ - spec/dummy/public/favicon.ico
242
+ - spec/dummy/script/rails
243
+ - spec/helpers/pigeon/channel_helper_spec.rb
244
+ - spec/helpers/pigeon/renderer/base_spec.rb
245
+ - spec/helpers/pigeon/renderer/channel_renderer_spec.rb
246
+ - spec/helpers/pigeon/tag_helper_spec.rb
247
+ - spec/helpers/pigeon/template_helper_spec.rb
248
+ - spec/models/pigeon/channel_attribute_spec.rb
249
+ - spec/models/pigeon/channel_schema_spec.rb
250
+ - spec/models/pigeon/channel_spec.rb
251
+ - spec/models/pigeon/nuntium_channel_spec.rb
252
+ - spec/spec_helper.rb
253
+ - spec/support/active_model_lint.rb
254
+ - spec/support/test_schemas.rb