one-eye-eater 0.1.16 → 0.1.17

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: 558d9909a9a19fd930477d0137809fd1f11ae8c5
4
- data.tar.gz: 41687a9806bec3099fff52e72d4403cbb53fa5cb
3
+ metadata.gz: 15904298bb77805501e8ccf2f94154afd16a69bc
4
+ data.tar.gz: 5fb2cdc0832035c3637f6431c57b11fc32b20df0
5
5
  SHA512:
6
- metadata.gz: aa5e819f78446938e5f2c5d545f5021ef7133d5eff7fab98ddf02b7ec9d7e9dd58be5c6e0418814539d2b5d1cac219992ae9ecf933bba78b6512657bb3ce385f
7
- data.tar.gz: c0644a620b026830a392803c866ab8644e45a41278c8f370fe36cf21f179f68998dad95b2fefdff17c10c54d046005fc2e54e89dded0e1878a7eb3aff2ccfd9b
6
+ metadata.gz: 77ec9c36c8ba744d19b9136017648e6008362f2a5a5c297dcd0162a4dbfef6fbad657ecd245e0e4f09c60355c1eb7c9bc2a474be0a543aa4e269ff3c1714b910
7
+ data.tar.gz: cdeb5de9c77fa02d9b707858db8dd088529eb1f1606c637bf947a48a59b55cf81d3417f0e38a9929d5b52608b55cab4df14b72f247f93f542bb90eebd3579014
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.16
1
+ 0.1.17
data/lib/models/base.rb CHANGED
@@ -66,7 +66,7 @@ module OneEye
66
66
 
67
67
  private
68
68
  def self.resources_url
69
- self.name.gsub(/\w+\:\:/) {}.underscore.downcase.pluralize
69
+ self.name.sub(/\w+\:\:/) {}.underscore.downcase.pluralize
70
70
  end
71
71
 
72
72
  def self.method_missing(name, *args, &block)
@@ -2,7 +2,7 @@ require_relative "../base"
2
2
 
3
3
  module OneEye
4
4
  module Insights
5
- class SnapshotSuggestedGroup < OneEye::Base
5
+ class SnapshotSuggestedGroups < OneEye::Base
6
6
  end
7
7
  end
8
8
  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.16 ruby lib
5
+ # stub: one-eye-eater 0.1.17 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "one-eye-eater"
9
- s.version = "0.1.16"
9
+ s.version = "0.1.17"
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-10"
14
+ s.date = "2014-07-15"
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 = [
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
35
35
  "lib/models/group_membership.rb",
36
36
  "lib/models/insights/insights.rb",
37
37
  "lib/models/insights/snapshot_performance.rb",
38
- "lib/models/insights/snapshot_suggested_group.rb",
38
+ "lib/models/insights/snapshot_suggested_groups.rb",
39
39
  "lib/models/insights/snapshot_usage.rb",
40
40
  "lib/models/school.rb",
41
41
  "lib/models/user.rb",
@@ -32,6 +32,10 @@ describe OneEye::Base do
32
32
  expect(@schools.first.name).to eq("October's Very Own Academy")
33
33
  end
34
34
 
35
+ it "replaces module names with URLs", :deep_module_nesting do
36
+ expect(OneEye::Insights::SnapshotSuggestedGroups.find(55).school_id).to eq(406879)
37
+ end
38
+
35
39
  it "dynamically dispatches custom finders", :finders do
36
40
  expect(OneEye::Insights::SnapshotUsage.districts(:district_id => 22037).first.num_teachers).to eq(5)
37
41
  expect(OneEye::Insights::SnapshotPerformance.schools(:district_id => 22037,
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.16
4
+ version: 0.1.17
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-10 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -202,7 +202,7 @@ files:
202
202
  - lib/models/group_membership.rb
203
203
  - lib/models/insights/insights.rb
204
204
  - lib/models/insights/snapshot_performance.rb
205
- - lib/models/insights/snapshot_suggested_group.rb
205
+ - lib/models/insights/snapshot_suggested_groups.rb
206
206
  - lib/models/insights/snapshot_usage.rb
207
207
  - lib/models/school.rb
208
208
  - lib/models/user.rb