mixpannenkoek 0.0.4 → 0.0.5

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: c522161ceeb1a1cb920c8df995fbbdc742a9afa8
4
- data.tar.gz: 9700672e659aa9477cadc2ca4bfb4d4a2dcaafca
3
+ metadata.gz: b5b1db70f8e6ba4abc135f9b9a630b0093f69eed
4
+ data.tar.gz: ae98262ad6a0659fe718ecda6536306fd7fccdda
5
5
  SHA512:
6
- metadata.gz: 14103a289695a37071c7f700705436665f95085d172477f885a8563f16b6d9c144dc54874ea3b435275842082854abb567ac4c03d3ef6cf5c5a19215790a12b0
7
- data.tar.gz: 8cef5cadd63a7ecd662fba07f4154e8e17c41bc0f4dc576449ef529c08b7f90596cd59b36f72ffe79d4c7eda8a16dc8f66a69f8f30d7ad5feccdd196b53129f9
6
+ metadata.gz: 495cd703684ff889c35bb66ecd1efc6c2305a9c58e7cb0597c3c8fbe275c6cf31ce6ca4f0c77a1952407be382c540b4a0b6de563b97f4a9eef7af80da83d7cfb
7
+ data.tar.gz: adf6dba7380a3c596643a98b0ac19e262edd3f0e1cc567408dcf9cb1a9b75c7e561ecae7d6a7494e8af21e781d0716a41e4051a08fdb6fcd653d7d9927007b82
@@ -3,7 +3,6 @@ require 'mixpanel_client'
3
3
 
4
4
  module Mixpannenkoek
5
5
  class Query
6
- class MissingRange < Exception; end
7
6
  class MissingConfiguration < Exception; end
8
7
 
9
8
  attr_accessor :where, :group, :klass
@@ -101,7 +100,6 @@ module Mixpannenkoek
101
100
  end
102
101
 
103
102
  def check_parameters
104
- raise MissingRange if query_with_default_scopes[:from_date].nil? && query_with_default_scopes[:to_date].nil?
105
103
  raise MissingConfiguration.new('The mixpanel api_key has not been configured') if @klass.api_key.nil?
106
104
  raise MissingConfiguration.new('The mixpanel api_secret has not been configured') if @klass.api_secret.nil?
107
105
  end
@@ -1,3 +1,3 @@
1
1
  module Mixpannenkoek
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -104,13 +104,7 @@ describe Mixpannenkoek::Base do
104
104
  end
105
105
 
106
106
  describe '#query' do
107
- context 'without date range' do
108
- subject { Mixpannenkoek::TestQuery.group('subject_name').to_hash }
109
- it 'raises Mixpannenkoek::Query::MissingRange' do
110
- expect { subject }.to raise_error Mixpannenkoek::Query::MissingRange
111
- end
112
- end
113
-
107
+
114
108
  context 'missing api_key' do
115
109
  subject { Mixpannenkoek::TestQuery.where(date: date_range).to_hash }
116
110
  before { allow(Mixpannenkoek::TestQuery).to receive(:api_key) { nil } }
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixpannenkoek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Kraan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-09 00:00:00.000000000 Z
11
+ date: 2015-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixpanel_client
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.4'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Implements a fluent interface for writing queries for the mixpanel API.
@@ -74,8 +74,8 @@ executables: []
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
- - .gitignore
78
- - .travis.yml
77
+ - ".gitignore"
78
+ - ".travis.yml"
79
79
  - CONTRIBUTORS.md
80
80
  - Gemfile
81
81
  - LICENSE.txt
@@ -109,17 +109,17 @@ require_paths:
109
109
  - lib
110
110
  required_ruby_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - '>='
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - '>='
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
121
  rubyforge_project:
122
- rubygems_version: 2.0.3
122
+ rubygems_version: 2.4.5
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Sugar for the mixpanel-client gem