acts_as_cleo 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/Gemfile +20 -3
  2. data/{LICENSE → LICENSE.txt} +1 -3
  3. data/README.rdoc +24 -0
  4. data/Rakefile +54 -2
  5. data/VERSION +1 -0
  6. data/acts_as_cleo.gemspec +107 -13
  7. data/config/cleo.yml +10 -0
  8. data/lib/acts_as_cleo.rb +17 -105
  9. data/lib/acts_methods.rb +34 -0
  10. data/lib/class_methods.rb +4 -0
  11. data/lib/cleo/reference.rb +5 -0
  12. data/lib/cleo/result.rb +18 -0
  13. data/lib/cleo/server.rb +16 -0
  14. data/lib/cleo.rb +95 -0
  15. data/lib/common_methods.rb +17 -0
  16. data/lib/instance_methods.rb +45 -0
  17. data/test/config/cleo.yml +2 -0
  18. data/test/data/xml/cleo/element.xml +11 -0
  19. data/test/data/xml/cleo/elements.xml +90 -0
  20. data/test/data/xml/cleo/testing_element.xml +11 -0
  21. data/test/db/connection/sqlite.rb +8 -0
  22. data/test/db/migrate/001_create_books.rb +13 -0
  23. data/test/db/migrate/002_create_movies.rb +12 -0
  24. data/test/db/migrate/003_create_categories.rb +11 -0
  25. data/test/db/migrate/004_create_electronics.rb +15 -0
  26. data/test/db/migrate/005_create_authors.rb +12 -0
  27. data/test/db/migrate/006_create_postings.rb +9 -0
  28. data/test/db/test.db +0 -0
  29. data/test/fixtures/authors.yml +9 -0
  30. data/test/fixtures/books.yml +11 -0
  31. data/test/fixtures/categories.yml +7 -0
  32. data/test/fixtures/electronics.yml +39 -0
  33. data/test/fixtures/movies.yml +9 -0
  34. data/test/helper.rb +38 -0
  35. data/test/models/author.rb +7 -0
  36. data/test/models/book.rb +15 -0
  37. data/test/models/category.rb +7 -0
  38. data/test/models/electronic.rb +11 -0
  39. data/test/models/movie.rb +8 -0
  40. data/test/test_acts_as_cleo.rb +7 -0
  41. data/test/unit/test_acts_methods.rb +19 -0
  42. data/test/unit/test_cleo.rb +60 -0
  43. data/test/unit/test_result_parser.rb +23 -0
  44. metadata +161 -13
  45. data/.gitignore +0 -24
  46. data/README.md +0 -29
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_cleo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,26 +9,174 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-20 00:00:00.000000000Z
13
- dependencies: []
14
- description: A Cleo Inegration Gem
15
- email:
16
- - Blue.Dog.Archolite@gmail.com
12
+ date: 2012-03-21 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: happymapper
16
+ requirement: &70295738594440 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70295738594440
25
+ - !ruby/object:Gem::Dependency
26
+ name: rails
27
+ requirement: &70295738593960 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 3.1.0
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70295738593960
36
+ - !ruby/object:Gem::Dependency
37
+ name: shoulda
38
+ requirement: &70295738593480 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70295738593480
47
+ - !ruby/object:Gem::Dependency
48
+ name: rdoc
49
+ requirement: &70295738593000 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '3.12'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *70295738593000
58
+ - !ruby/object:Gem::Dependency
59
+ name: bundler
60
+ requirement: &70295738592520 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: 1.0.0
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70295738592520
69
+ - !ruby/object:Gem::Dependency
70
+ name: jeweler
71
+ requirement: &70295738592040 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 1.8.3
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: *70295738592040
80
+ - !ruby/object:Gem::Dependency
81
+ name: simplecov
82
+ requirement: &70295738591560 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70295738591560
91
+ - !ruby/object:Gem::Dependency
92
+ name: ruby-debug19
93
+ requirement: &70295738591080 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *70295738591080
102
+ - !ruby/object:Gem::Dependency
103
+ name: fixtures
104
+ requirement: &70295738590600 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *70295738590600
113
+ - !ruby/object:Gem::Dependency
114
+ name: sqlite3
115
+ requirement: &70295738590120 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: *70295738590120
124
+ description: LinkedIn Open Source type ahead tool's REST API as a ruby gem
125
+ email: Blue.Dog.Archolite@gmail.com
17
126
  executables: []
18
127
  extensions: []
19
- extra_rdoc_files: []
128
+ extra_rdoc_files:
129
+ - LICENSE.txt
130
+ - README.rdoc
20
131
  files:
21
- - .gitignore
22
132
  - Gemfile
23
- - LICENSE
24
- - README.md
133
+ - LICENSE.txt
134
+ - README.rdoc
25
135
  - Rakefile
136
+ - VERSION
26
137
  - acts_as_cleo.gemspec
138
+ - config/cleo.yml
27
139
  - lib/acts_as_cleo.rb
28
140
  - lib/acts_as_cleo/result.rb
29
141
  - lib/acts_as_cleo/version.rb
30
- homepage: ''
31
- licenses: []
142
+ - lib/acts_methods.rb
143
+ - lib/class_methods.rb
144
+ - lib/cleo.rb
145
+ - lib/cleo/reference.rb
146
+ - lib/cleo/result.rb
147
+ - lib/cleo/server.rb
148
+ - lib/common_methods.rb
149
+ - lib/instance_methods.rb
150
+ - test/config/cleo.yml
151
+ - test/data/xml/cleo/element.xml
152
+ - test/data/xml/cleo/elements.xml
153
+ - test/data/xml/cleo/testing_element.xml
154
+ - test/db/connection/sqlite.rb
155
+ - test/db/migrate/001_create_books.rb
156
+ - test/db/migrate/002_create_movies.rb
157
+ - test/db/migrate/003_create_categories.rb
158
+ - test/db/migrate/004_create_electronics.rb
159
+ - test/db/migrate/005_create_authors.rb
160
+ - test/db/migrate/006_create_postings.rb
161
+ - test/db/test.db
162
+ - test/fixtures/authors.yml
163
+ - test/fixtures/books.yml
164
+ - test/fixtures/categories.yml
165
+ - test/fixtures/electronics.yml
166
+ - test/fixtures/movies.yml
167
+ - test/helper.rb
168
+ - test/models/author.rb
169
+ - test/models/book.rb
170
+ - test/models/category.rb
171
+ - test/models/electronic.rb
172
+ - test/models/movie.rb
173
+ - test/test_acts_as_cleo.rb
174
+ - test/unit/test_acts_methods.rb
175
+ - test/unit/test_cleo.rb
176
+ - test/unit/test_result_parser.rb
177
+ homepage: http://github.com/blue-dog-archolite/acts_as_cleo
178
+ licenses:
179
+ - MIT
32
180
  post_install_message:
33
181
  rdoc_options: []
34
182
  require_paths:
@@ -50,5 +198,5 @@ rubyforge_project:
50
198
  rubygems_version: 1.8.17
51
199
  signing_key:
52
200
  specification_version: 3
53
- summary: A Rails interface for the Cleo REST API
201
+ summary: A Rails enabled Cleo API
54
202
  test_files: []
data/.gitignore DELETED
@@ -1,24 +0,0 @@
1
- # Ignore bundler config
2
- /.bundle
3
- Gemfile.lock
4
-
5
- #rvm
6
- /.rvmrc
7
- .rvmrc
8
-
9
- *.gem
10
- *.rbc
11
- .bundle
12
- .config
13
- .yardoc
14
- InstalledFiles
15
- _yardoc
16
- coverage
17
- doc/
18
- lib/bundler/man
19
- pkg
20
- rdoc
21
- spec/reports
22
- test/tmp
23
- test/version_tmp
24
- tmp
data/README.md DELETED
@@ -1,29 +0,0 @@
1
- # ActsAsCleo
2
-
3
- TODO: Write a gem description
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- gem 'acts_as_cleo'
10
-
11
- And then execute:
12
-
13
- $ bundle
14
-
15
- Or install it yourself as:
16
-
17
- $ gem install acts_as_cleo
18
-
19
- ## Usage
20
-
21
- TODO: Write usage instructions here
22
-
23
- ## Contributing
24
-
25
- 1. Fork it
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Added some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request