iconik 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27aaaa05353f9c8e24582c1fc5d449f6efc81b5e
4
- data.tar.gz: 0085337ff8da6e0592a9ad0fc9946285b1c33b9a
3
+ metadata.gz: 87cf6ccf462060e5f1bd23a6895753f3a4af4d35
4
+ data.tar.gz: 25736956085275d472fcdcf8ef5048b68b2efb5f
5
5
  SHA512:
6
- metadata.gz: fd06c68434e600b842f08c7c8389fcfeb9a68de20ba128fe5c70bf9ebcafccce3bb11b1e03fbb80ef0ae9aff4fb2571525ae0f209dabe7e7385d4d33dc7f7cc7
7
- data.tar.gz: 4f1da2f28214cf697cd293a19b8dd6e405ab3ec00ca371a4f0b9650918d96b66db66478f66d0f41db0be43a90fd138f4eae5173c0f57b8f5a7a454aaf460f298
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
@@ -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: url, scraping: false)
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
@@ -1,3 +1,3 @@
1
1
  module Iconik
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -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: 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.3
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-12 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler