iconik 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -0
- data/lib/iconik/app_store.rb +5 -5
- data/lib/iconik/version.rb +1 -1
- data/spec/lib/iconik/app_store_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87cf6ccf462060e5f1bd23a6895753f3a4af4d35
|
4
|
+
data.tar.gz: 25736956085275d472fcdcf8ef5048b68b2efb5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f9404e71794cf902016f4f2171fb06f3c2d39ee0eced38badd1fb907729bec6dab48d78d77f3c6ece6575db7bdbb6c47a43a14a8c9539d87703c31fde6552d1
|
7
|
+
data.tar.gz: 9abb58db8cc0ecd2383349e043f8ff6598b86a4bd80fc18dcd3557172764f904a2a20b5a3b652fc99e625717573ec5ad8f6a48035aae928736e0d06e942eeafa
|
data/README.md
CHANGED
@@ -37,6 +37,19 @@ Iconik::ITunes.new('https://itunes.apple.com/jp/app/ingress/id576505181?mt=8').p
|
|
37
37
|
Iconik::GooglePlay.new('https://play.google.com/store/apps/details?id=com.nianticproject.ingress&hl=ja').pluck_icon
|
38
38
|
=> "https://lh3.ggpht.com/j8lGWdhEjmw5rVZ6CiJY_k5D0iPqp_jomAUdyS_n8v5SUQVb8Dt-USXUZXmx1QAca8zJ=w300"
|
39
39
|
|
40
|
+
#
|
41
|
+
|
42
|
+
# iTunes store
|
43
|
+
|
44
|
+
Iconik::AppStore.new('https://itunes.apple.com/jp/app/ingress/id576505181?mt=8').pluck_icon
|
45
|
+
=> "http://a5.mzstatic.com/us/r30/Purple4/v4/53/8c/f5/538cf5ae-f6fe-ef7b-15fd-bb7d7d84563a/mzl.vwbatafr.175x175-75.jpg"
|
46
|
+
|
47
|
+
# Google play
|
48
|
+
|
49
|
+
Iconik::AppStore.new('https://play.google.com/store/apps/details?id=com.nianticproject.ingress&hl=ja').pluck_icon
|
50
|
+
=> "https://lh3.ggpht.com/j8lGWdhEjmw5rVZ6CiJY_k5D0iPqp_jomAUdyS_n8v5SUQVb8Dt-USXUZXmx1QAca8zJ=w300"
|
51
|
+
|
52
|
+
|
40
53
|
```
|
41
54
|
|
42
55
|
## TODO
|
data/lib/iconik/app_store.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
+
require 'iconik/http_client'
|
2
|
+
require 'iconik/google_play'
|
3
|
+
require 'iconik/i_tunes'
|
4
|
+
|
1
5
|
module Iconik
|
2
|
-
require 'iconik/http_client'
|
3
|
-
require 'iconik/google_play'
|
4
|
-
require 'iconik/i_tunes'
|
5
6
|
class AppStore
|
6
7
|
attr_reader :url, :store
|
7
8
|
|
8
|
-
def initialize(url
|
9
|
+
def initialize(url, scraping: false)
|
9
10
|
@url = url
|
10
|
-
@scraping = scraping
|
11
11
|
@store = Iconik::ITunes.new(url, scraping: scraping) if i_tunes?
|
12
12
|
@store = Iconik::GooglePlay.new(url) if google_play?
|
13
13
|
end
|
data/lib/iconik/version.rb
CHANGED
@@ -4,7 +4,7 @@ require 'iconik/app_store'
|
|
4
4
|
describe Iconik do
|
5
5
|
describe 'Iconik::AppStore' do
|
6
6
|
let(:pluck_icon) { iconik.pluck_icon }
|
7
|
-
let(:iconik) { Iconik::AppStore.new(url
|
7
|
+
let(:iconik) { Iconik::AppStore.new(url) }
|
8
8
|
context 'google play' do
|
9
9
|
let(:url) { 'https://play.google.com/store/apps/details?id=com.nianticproject.ingress&hl=ja' }
|
10
10
|
subject { VCR.use_cassette('google play') { pluck_icon } }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iconik
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kazuaking
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|