analytics-ruby 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,3 +1,12 @@
1
+
2
+ 1.1.0 / 2014-04-17
3
+ ==================
4
+ * adding .initialized? by [@lumberj](https://github.com/lumberj)
5
+
6
+ 1.0.0 / 2014-03-12
7
+ ==================
8
+ * removing faraday dependency
9
+
1
10
  0.6.0 / 2014-02-19
2
11
  ==================
3
12
  * adding .group(), .page(), and .screen() calls
Binary file
@@ -42,6 +42,10 @@ module AnalyticsRuby
42
42
  return false unless @client
43
43
  @client.flush
44
44
  end
45
+
46
+ def initialized?
47
+ !!@client
48
+ end
45
49
  end
46
50
  extend ClassMethods
47
- end
51
+ end
@@ -1,3 +1,3 @@
1
1
  module AnalyticsRuby
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
data/spec/module_spec.rb CHANGED
@@ -123,4 +123,14 @@ describe AnalyticsRuby do
123
123
  AnalyticsRuby.flush
124
124
  end
125
125
  end
126
+
127
+ describe "#initialized?" do
128
+
129
+ context "when initialized" do
130
+ it "should return true" do
131
+ AnalyticsRuby.init :secret => AnalyticsRubyHelpers::SECRET
132
+ expect(AnalyticsRuby.initialized?).to be_true
133
+ end
134
+ end
135
+ end
126
136
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analytics-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-13 00:00:00.000000000 Z
12
+ date: 2014-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -50,6 +50,7 @@ extensions: []
50
50
  extra_rdoc_files: []
51
51
  files:
52
52
  - analytics-ruby-0.6.0.gem
53
+ - analytics-ruby-1.0.0.gem
53
54
  - analytics-ruby.gemspec
54
55
  - Gemfile
55
56
  - History.md