fantastic_robot 0.1.1

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.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +117 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +19 -0
  5. data/CODE_OF_CONDUCT.md +49 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +48 -0
  8. data/LICENSE +22 -0
  9. data/README.md +147 -0
  10. data/Rakefile +10 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/fantastic_robot.gemspec +32 -0
  14. data/lib/fantastic_robot/configuration.rb +32 -0
  15. data/lib/fantastic_robot/connection.rb +36 -0
  16. data/lib/fantastic_robot/model/attachment/audio.rb +12 -0
  17. data/lib/fantastic_robot/model/attachment/base.rb +15 -0
  18. data/lib/fantastic_robot/model/attachment/contact.rb +11 -0
  19. data/lib/fantastic_robot/model/attachment/document.rb +16 -0
  20. data/lib/fantastic_robot/model/attachment/location.rb +10 -0
  21. data/lib/fantastic_robot/model/attachment/photo_size.rb +12 -0
  22. data/lib/fantastic_robot/model/attachment/sticker.rb +17 -0
  23. data/lib/fantastic_robot/model/attachment/video.rb +17 -0
  24. data/lib/fantastic_robot/model/attachment/voice.rb +12 -0
  25. data/lib/fantastic_robot/model/base.rb +68 -0
  26. data/lib/fantastic_robot/model/chat.rb +14 -0
  27. data/lib/fantastic_robot/model/file.rb +14 -0
  28. data/lib/fantastic_robot/model/message.rb +51 -0
  29. data/lib/fantastic_robot/model/update.rb +15 -0
  30. data/lib/fantastic_robot/model/user.rb +11 -0
  31. data/lib/fantastic_robot/models.rb +6 -0
  32. data/lib/fantastic_robot/request/base.rb +59 -0
  33. data/lib/fantastic_robot/request/forward_message.rb +18 -0
  34. data/lib/fantastic_robot/request/get_me.rb +9 -0
  35. data/lib/fantastic_robot/request/send_audio.rb +32 -0
  36. data/lib/fantastic_robot/request/send_chat_action.rb +18 -0
  37. data/lib/fantastic_robot/request/send_document.rb +32 -0
  38. data/lib/fantastic_robot/request/send_location.rb +17 -0
  39. data/lib/fantastic_robot/request/send_message.rb +17 -0
  40. data/lib/fantastic_robot/request/send_photo.rb +16 -0
  41. data/lib/fantastic_robot/request/send_sticker.rb +18 -0
  42. data/lib/fantastic_robot/request/send_video.rb +32 -0
  43. data/lib/fantastic_robot/request/send_voice.rb +32 -0
  44. data/lib/fantastic_robot/request/set_webhook.rb +29 -0
  45. data/lib/fantastic_robot/requests.rb +13 -0
  46. data/lib/fantastic_robot/version.rb +3 -0
  47. data/lib/fantastic_robot.rb +56 -0
  48. data/lib/generators/fantastic_robot/files/fantastic_robot.rb +12 -0
  49. data/lib/generators/fantastic_robot/install_generator.rb +13 -0
  50. metadata +197 -0
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fantastic_robot
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Óscar de Arriba
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-01-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activemodel
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 4.0.0
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: 5.0.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 4.0.0
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: 5.0.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: faraday
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ~>
38
+ - !ruby/object:Gem::Version
39
+ version: 0.9.2
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 0.9.2
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '1.10'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: '1.10'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: '10.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ~>
73
+ - !ruby/object:Gem::Version
74
+ version: '10.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: minitest
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ~>
80
+ - !ruby/object:Gem::Version
81
+ version: '5.0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ~>
87
+ - !ruby/object:Gem::Version
88
+ version: '5.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: factory_girl
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ~>
94
+ - !ruby/object:Gem::Version
95
+ version: '4.0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ~>
101
+ - !ruby/object:Gem::Version
102
+ version: '4.0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: faker
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '1.6'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ~>
115
+ - !ruby/object:Gem::Version
116
+ version: '1.6'
117
+ description: Ruby wrapper of Telegram's Bot API to create applications using web hooks
118
+ functionality.
119
+ email:
120
+ - odarriba@gmail.com
121
+ executables: []
122
+ extensions: []
123
+ extra_rdoc_files: []
124
+ files:
125
+ - .gitignore
126
+ - .ruby-version
127
+ - .travis.yml
128
+ - CODE_OF_CONDUCT.md
129
+ - Gemfile
130
+ - Gemfile.lock
131
+ - LICENSE
132
+ - README.md
133
+ - Rakefile
134
+ - bin/console
135
+ - bin/setup
136
+ - fantastic_robot.gemspec
137
+ - lib/fantastic_robot.rb
138
+ - lib/fantastic_robot/configuration.rb
139
+ - lib/fantastic_robot/connection.rb
140
+ - lib/fantastic_robot/model/attachment/audio.rb
141
+ - lib/fantastic_robot/model/attachment/base.rb
142
+ - lib/fantastic_robot/model/attachment/contact.rb
143
+ - lib/fantastic_robot/model/attachment/document.rb
144
+ - lib/fantastic_robot/model/attachment/location.rb
145
+ - lib/fantastic_robot/model/attachment/photo_size.rb
146
+ - lib/fantastic_robot/model/attachment/sticker.rb
147
+ - lib/fantastic_robot/model/attachment/video.rb
148
+ - lib/fantastic_robot/model/attachment/voice.rb
149
+ - lib/fantastic_robot/model/base.rb
150
+ - lib/fantastic_robot/model/chat.rb
151
+ - lib/fantastic_robot/model/file.rb
152
+ - lib/fantastic_robot/model/message.rb
153
+ - lib/fantastic_robot/model/update.rb
154
+ - lib/fantastic_robot/model/user.rb
155
+ - lib/fantastic_robot/models.rb
156
+ - lib/fantastic_robot/request/base.rb
157
+ - lib/fantastic_robot/request/forward_message.rb
158
+ - lib/fantastic_robot/request/get_me.rb
159
+ - lib/fantastic_robot/request/send_audio.rb
160
+ - lib/fantastic_robot/request/send_chat_action.rb
161
+ - lib/fantastic_robot/request/send_document.rb
162
+ - lib/fantastic_robot/request/send_location.rb
163
+ - lib/fantastic_robot/request/send_message.rb
164
+ - lib/fantastic_robot/request/send_photo.rb
165
+ - lib/fantastic_robot/request/send_sticker.rb
166
+ - lib/fantastic_robot/request/send_video.rb
167
+ - lib/fantastic_robot/request/send_voice.rb
168
+ - lib/fantastic_robot/request/set_webhook.rb
169
+ - lib/fantastic_robot/requests.rb
170
+ - lib/fantastic_robot/version.rb
171
+ - lib/generators/fantastic_robot/files/fantastic_robot.rb
172
+ - lib/generators/fantastic_robot/install_generator.rb
173
+ homepage: https://github.com/odarriba/fantastic_robot
174
+ licenses:
175
+ - MIT
176
+ metadata: {}
177
+ post_install_message:
178
+ rdoc_options: []
179
+ require_paths:
180
+ - lib
181
+ required_ruby_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - '>='
184
+ - !ruby/object:Gem::Version
185
+ version: 2.0.0
186
+ required_rubygems_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ requirements: []
192
+ rubyforge_project:
193
+ rubygems_version: 2.5.1
194
+ signing_key:
195
+ specification_version: 4
196
+ summary: Ruby wrapper of Telegram's Bot API with web hooks functionality
197
+ test_files: []