one-eye-eater 0.1.20 → 0.1.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b52baf8402f006cfcfaef9b5636141e1e7be9898
4
- data.tar.gz: 6c3d3dd784b4e00671cc5ae4633f323d38e22533
3
+ metadata.gz: c8e3e35cb04cbd505e7db32065ee3b5ee646a7d6
4
+ data.tar.gz: b261867012707682a50c45c86c81264c6bb8b460
5
5
  SHA512:
6
- metadata.gz: 0a75c47307426b98eb617491ed27439fb5916426fedd41ad400630d6fd1e4869abe8842657fefbe4382180165f2b45ae300e2c0d93525f78d04b15dba88fcdd0
7
- data.tar.gz: 498c24fb8c483c4c08245732be7416a36f5aa59ff41ad05af4080848c39702df91783a397abe42d22b483b3fbe0dfd910942db72a018676d16f9cd0fea4c26af
6
+ metadata.gz: 25a38df3dec3bf197088550ee992c14cf96c47d8a49ab2163d8531e4ba7a9f8e149d21817076d5d11c30572b385375b8fe4ecc2ae94c1b7c768a5e4ee0d5b7d5
7
+ data.tar.gz: 29a3fdf40cf85b2ef17dfc07205aedea4b3d382eeeb68da10f2b25aad18204f0b38544f1777e3a4b30de732effb7efa25c5c12cb8ff26a4ed234314d53756bc0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.20
1
+ 0.1.21
data/lib/models/base.rb CHANGED
@@ -25,7 +25,7 @@ module OneEye
25
25
 
26
26
  def attributes=(attrs)
27
27
  make_array_convertable attrs if attrs.is_a? Array
28
- attrs.to_hash.each { |k, v| send "#{k}=", v }
28
+ attrs.to_hash.each { |k, v| send "#{k.to_s.gsub(/\-/) {}}=", v }
29
29
  end
30
30
 
31
31
  def attributes
@@ -1,4 +1,7 @@
1
1
  module OneEye
2
2
  module Insights
3
+ def self.const_missing(const)
4
+ const_set(const, Class.new(OneEye::Base))
5
+ end
3
6
  end
4
7
  end
data/lib/one-eye-eater.rb CHANGED
@@ -1,4 +1,7 @@
1
1
  Dir.glob(File.expand_path(File.join(File.dirname(__FILE__), "**/*.rb"))).each { |f| require f }
2
2
 
3
3
  module OneEye
4
+ def self.const_missing(const)
5
+ const_set(const, Class.new(OneEye::Base))
6
+ end
4
7
  end
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: one-eye-eater 0.1.20 ruby lib
5
+ # stub: one-eye-eater 0.1.21 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "one-eye-eater"
9
- s.version = "0.1.20"
9
+ s.version = "0.1.21"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Brett Shollenberger"]
14
- s.date = "2014-07-15"
14
+ s.date = "2014-07-24"
15
15
  s.description = "Create, read, update, and destroy Edmodo data via the One Eye API."
16
16
  s.email = "brett.shollenberger@gmail.com"
17
17
  s.extra_rdoc_files = [
@@ -30,15 +30,7 @@ Gem::Specification.new do |s|
30
30
  "VERSION",
31
31
  "lib/api.rb",
32
32
  "lib/models/base.rb",
33
- "lib/models/district.rb",
34
- "lib/models/group.rb",
35
- "lib/models/group_membership.rb",
36
33
  "lib/models/insights/insights.rb",
37
- "lib/models/insights/snapshot_performance.rb",
38
- "lib/models/insights/snapshot_recommended_teacher.rb",
39
- "lib/models/insights/snapshot_suggested_group.rb",
40
- "lib/models/insights/snapshot_usage.rb",
41
- "lib/models/school.rb",
42
34
  "lib/models/user.rb",
43
35
  "lib/one-eye-eater.rb",
44
36
  "one-eye-eater.gemspec",
@@ -40,7 +40,7 @@ describe OneEye::Base do
40
40
  expect(OneEye::Insights::SnapshotUsage.districts(:district_id => 22037).first.num_teachers).to eq(5)
41
41
  expect(OneEye::Insights::SnapshotPerformance.schools(:district_id => 22037,
42
42
  :assessment_area => "CCSS.ELA")
43
- .first.progress_percent).to eq(2.7)
43
+ .first.progress_percent).to eq(4.73)
44
44
  end
45
45
 
46
46
  it "sets attributes", :attributes do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: one-eye-eater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Shollenberger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-15 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -197,15 +197,7 @@ files:
197
197
  - VERSION
198
198
  - lib/api.rb
199
199
  - lib/models/base.rb
200
- - lib/models/district.rb
201
- - lib/models/group.rb
202
- - lib/models/group_membership.rb
203
200
  - lib/models/insights/insights.rb
204
- - lib/models/insights/snapshot_performance.rb
205
- - lib/models/insights/snapshot_recommended_teacher.rb
206
- - lib/models/insights/snapshot_suggested_group.rb
207
- - lib/models/insights/snapshot_usage.rb
208
- - lib/models/school.rb
209
201
  - lib/models/user.rb
210
202
  - lib/one-eye-eater.rb
211
203
  - one-eye-eater.gemspec
@@ -1,6 +0,0 @@
1
- require_relative "./base"
2
-
3
- module OneEye
4
- class District < OneEye::Base
5
- end
6
- end
data/lib/models/group.rb DELETED
@@ -1,6 +0,0 @@
1
- require_relative "./base"
2
-
3
- module OneEye
4
- class Group < OneEye::Base
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- require_relative "./base"
2
-
3
- module OneEye
4
- class GroupMembership < OneEye::Base
5
- end
6
- end
@@ -1,8 +0,0 @@
1
- require_relative "../base"
2
-
3
- module OneEye
4
- module Insights
5
- class SnapshotPerformance < OneEye::Base
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require_relative "../base"
2
-
3
- module OneEye
4
- module Insights
5
- class SnapshotRecommendedTeacher < OneEye::Base
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require_relative "../base"
2
-
3
- module OneEye
4
- module Insights
5
- class SnapshotSuggestedGroup < OneEye::Base
6
- end
7
- end
8
- end
@@ -1,8 +0,0 @@
1
- require_relative "../base"
2
-
3
- module OneEye
4
- module Insights
5
- class SnapshotUsage < OneEye::Base
6
- end
7
- end
8
- end
data/lib/models/school.rb DELETED
@@ -1,6 +0,0 @@
1
- require_relative "./base"
2
-
3
- module OneEye
4
- class School < OneEye::Base
5
- end
6
- end