openstax_active_force 1.0.0

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 +7 -0
  2. data/.gitignore +17 -0
  3. data/.mailmap +3 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +3 -0
  6. data/CHANGELOG.md +98 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +174 -0
  10. data/Rakefile +6 -0
  11. data/active_force.gemspec +30 -0
  12. data/lib/active_attr/dirty.rb +33 -0
  13. data/lib/active_force/active_query.rb +155 -0
  14. data/lib/active_force/association/association.rb +50 -0
  15. data/lib/active_force/association/belongs_to_association.rb +26 -0
  16. data/lib/active_force/association/eager_load_projection_builder.rb +60 -0
  17. data/lib/active_force/association/has_many_association.rb +33 -0
  18. data/lib/active_force/association/relation_model_builder.rb +70 -0
  19. data/lib/active_force/association.rb +28 -0
  20. data/lib/active_force/attribute.rb +30 -0
  21. data/lib/active_force/mapping.rb +78 -0
  22. data/lib/active_force/query.rb +110 -0
  23. data/lib/active_force/sobject.rb +210 -0
  24. data/lib/active_force/standard_types.rb +357 -0
  25. data/lib/active_force/table.rb +37 -0
  26. data/lib/active_force/version.rb +3 -0
  27. data/lib/active_force.rb +13 -0
  28. data/lib/generators/active_force/model/USAGE +8 -0
  29. data/lib/generators/active_force/model/model_generator.rb +62 -0
  30. data/lib/generators/active_force/model/templates/model.rb.erb +5 -0
  31. data/spec/active_force/active_query_spec.rb +178 -0
  32. data/spec/active_force/association/relation_model_builder_spec.rb +62 -0
  33. data/spec/active_force/association_spec.rb +157 -0
  34. data/spec/active_force/attribute_spec.rb +27 -0
  35. data/spec/active_force/callbacks_spec.rb +20 -0
  36. data/spec/active_force/mapping_spec.rb +18 -0
  37. data/spec/active_force/query_spec.rb +126 -0
  38. data/spec/active_force/sobject/includes_spec.rb +290 -0
  39. data/spec/active_force/sobject/table_name_spec.rb +27 -0
  40. data/spec/active_force/sobject_spec.rb +398 -0
  41. data/spec/active_force/table_spec.rb +25 -0
  42. data/spec/active_force_spec.rb +7 -0
  43. data/spec/fixtures/sobject/single_sobject_hash.yml +26 -0
  44. data/spec/spec_helper.rb +16 -0
  45. data/spec/support/fixture_helpers.rb +45 -0
  46. data/spec/support/restforce_factories.rb +9 -0
  47. data/spec/support/sobjects.rb +97 -0
  48. data/spec/support/whizbang.rb +30 -0
  49. metadata +196 -0
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: openstax_active_force
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Eloy Espinaco
8
+ - Pablo Oldani
9
+ - Armando Andini
10
+ - José Piccioni
11
+ - JP Slavinsky
12
+ - Dante Soares
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+ date: 2019-11-06 00:00:00.000000000 Z
17
+ dependencies:
18
+ - !ruby/object:Gem::Dependency
19
+ name: rails
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - "<"
23
+ - !ruby/object:Gem::Version
24
+ version: '6.0'
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - "<"
30
+ - !ruby/object:Gem::Version
31
+ version: '6.0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: active_attr
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: restforce
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ - !ruby/object:Gem::Dependency
61
+ name: rake
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ type: :development
68
+ prerelease: false
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ - !ruby/object:Gem::Dependency
75
+ name: rspec
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ - !ruby/object:Gem::Dependency
89
+ name: pry
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ type: :development
96
+ prerelease: false
97
+ version_requirements: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ description: Use SalesForce as an ActiveModel
103
+ email: dante.m.soares@rice.edu
104
+ executables: []
105
+ extensions: []
106
+ extra_rdoc_files: []
107
+ files:
108
+ - ".gitignore"
109
+ - ".mailmap"
110
+ - ".rspec"
111
+ - ".travis.yml"
112
+ - CHANGELOG.md
113
+ - Gemfile
114
+ - LICENSE.txt
115
+ - README.md
116
+ - Rakefile
117
+ - active_force.gemspec
118
+ - lib/active_attr/dirty.rb
119
+ - lib/active_force.rb
120
+ - lib/active_force/active_query.rb
121
+ - lib/active_force/association.rb
122
+ - lib/active_force/association/association.rb
123
+ - lib/active_force/association/belongs_to_association.rb
124
+ - lib/active_force/association/eager_load_projection_builder.rb
125
+ - lib/active_force/association/has_many_association.rb
126
+ - lib/active_force/association/relation_model_builder.rb
127
+ - lib/active_force/attribute.rb
128
+ - lib/active_force/mapping.rb
129
+ - lib/active_force/query.rb
130
+ - lib/active_force/sobject.rb
131
+ - lib/active_force/standard_types.rb
132
+ - lib/active_force/table.rb
133
+ - lib/active_force/version.rb
134
+ - lib/generators/active_force/model/USAGE
135
+ - lib/generators/active_force/model/model_generator.rb
136
+ - lib/generators/active_force/model/templates/model.rb.erb
137
+ - spec/active_force/active_query_spec.rb
138
+ - spec/active_force/association/relation_model_builder_spec.rb
139
+ - spec/active_force/association_spec.rb
140
+ - spec/active_force/attribute_spec.rb
141
+ - spec/active_force/callbacks_spec.rb
142
+ - spec/active_force/mapping_spec.rb
143
+ - spec/active_force/query_spec.rb
144
+ - spec/active_force/sobject/includes_spec.rb
145
+ - spec/active_force/sobject/table_name_spec.rb
146
+ - spec/active_force/sobject_spec.rb
147
+ - spec/active_force/table_spec.rb
148
+ - spec/active_force_spec.rb
149
+ - spec/fixtures/sobject/single_sobject_hash.yml
150
+ - spec/spec_helper.rb
151
+ - spec/support/fixture_helpers.rb
152
+ - spec/support/restforce_factories.rb
153
+ - spec/support/sobjects.rb
154
+ - spec/support/whizbang.rb
155
+ homepage: https://github.com/openstax/active_force
156
+ licenses:
157
+ - MIT
158
+ metadata: {}
159
+ post_install_message:
160
+ rdoc_options: []
161
+ require_paths:
162
+ - lib
163
+ required_ruby_version: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: 1.9.3
168
+ required_rubygems_version: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ requirements: []
174
+ rubygems_version: 3.0.3
175
+ signing_key:
176
+ specification_version: 4
177
+ summary: Help you implement models persisting on Sales Force within Rails using RESTForce
178
+ test_files:
179
+ - spec/active_force/active_query_spec.rb
180
+ - spec/active_force/association/relation_model_builder_spec.rb
181
+ - spec/active_force/association_spec.rb
182
+ - spec/active_force/attribute_spec.rb
183
+ - spec/active_force/callbacks_spec.rb
184
+ - spec/active_force/mapping_spec.rb
185
+ - spec/active_force/query_spec.rb
186
+ - spec/active_force/sobject/includes_spec.rb
187
+ - spec/active_force/sobject/table_name_spec.rb
188
+ - spec/active_force/sobject_spec.rb
189
+ - spec/active_force/table_spec.rb
190
+ - spec/active_force_spec.rb
191
+ - spec/fixtures/sobject/single_sobject_hash.yml
192
+ - spec/spec_helper.rb
193
+ - spec/support/fixture_helpers.rb
194
+ - spec/support/restforce_factories.rb
195
+ - spec/support/sobjects.rb
196
+ - spec/support/whizbang.rb