woothee 0.3.9 → 0.4.0

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: 8a565b2886d6072100bd0b2c1833f8c82b89d9b6
4
- data.tar.gz: ca106f430b55eb12cf970df40fc94719553c1845
3
+ metadata.gz: 0eb66c8f34c7cddc728a48dfaafdbbb9b32d46d2
4
+ data.tar.gz: 0ac4c169c485a76035d1512285bbfa0e3b352451
5
5
  SHA512:
6
- metadata.gz: b42cfda798635d9eaf4a165fc6b6c948ce7096f2613148b0b96d03dda7d3cc25fef20d60f4ab68a99601729d12a089e0896b47a6b20f3ebd54558c52e65991a4
7
- data.tar.gz: e25e0baa635756652abe851aad4331bb03d5380cc6206eb4fcf2211a18458a61b2326c9db73084c5740e1cd6f91336ebbc7998b56a9583a4389356f6e405dde5
6
+ metadata.gz: f75d4f18a4f46c303ae35122054626715b504583796f46c1fd2b827ac2e2d4036c81b1822cb16681a7be2e1ec284cb31ac6cdc222acbc009deb9bd369a7257c7
7
+ data.tar.gz: 99bbfbb5bd66792c092642bbe4fc7f22ae4b7ff235f04f50d1e69d8fd13f163b84b61df6b93a412f40a5557c01883f7cb1b29b98112f13032b9f47724b3a167e
data/lib/woothee.rb CHANGED
@@ -8,6 +8,8 @@ require 'woothee/crawler'
8
8
  require 'woothee/appliance'
9
9
  require 'woothee/misc'
10
10
 
11
+ require 'woothee/version'
12
+
11
13
  module Woothee
12
14
  def self.parse(useragent)
13
15
  fill_result(exec_parse(useragent))
@@ -0,0 +1,3 @@
1
+ module Woothee
2
+ VERSION = "0.4.0"
3
+ end
@@ -10,4 +10,9 @@ describe Woothee do
10
10
  expect { require 'woothee/dataset' }.not_to raise_error()
11
11
  expect { require 'woothee' }.not_to raise_error()
12
12
  end
13
+
14
+ it "has valid version" do
15
+ expect { require 'woothee/version' }.not_to raise_error()
16
+ expect(Woothee::VERSION).to match(/\A[0-9]+\.[0-9]+\.[0-9]+\z/)
17
+ end
13
18
  end
data/woothee.gemspec CHANGED
@@ -1,11 +1,15 @@
1
1
  # encoding: utf-8
2
2
 
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'woothee/version'
6
+
3
7
  Gem::Specification.new do |gem|
4
8
  gem.name = "woothee"
5
9
  gem.description = "Cross-language UserAgent classifier library, ruby implementation"
6
10
  gem.homepage = "https://github.com/woothee/woothee-ruby"
7
11
  gem.summary = gem.description
8
- gem.version = "0.3.9"
12
+ gem.version = Woothee::VERSION
9
13
  gem.authors = ["TAGOMORI Satoshi"]
10
14
  gem.email = "tagomoris@gmail.com"
11
15
  gem.has_rdoc = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woothee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-02 00:00:00.000000000 Z
11
+ date: 2014-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -47,6 +47,7 @@ files:
47
47
  - lib/woothee/mobilephone.rb
48
48
  - lib/woothee/os.rb
49
49
  - lib/woothee/util.rb
50
+ - lib/woothee/version.rb
50
51
  - scripts/dataset_yaml2rb.rb
51
52
  - spec/00_valid_spec.rb
52
53
  - spec/01_dataset_spec.rb