bigcartel-theme-fonts 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b7b57396c65d9381da092068e3b692452d4f5aa2
4
+ data.tar.gz: dc64afa836f117d55088dd26b2f885a65d422822
5
+ SHA512:
6
+ metadata.gz: 242a7d78dd1e8d8996f2c5df3564f63544019d832e74439e2c8322f3beae8ab820faddf57001883a54ee8e72667e2dace31ae2fbdca34cb27de98c07c27f8f92
7
+ data.tar.gz: 40dad30f69292ffab13f749b2a49df1a5f253fc52481e49befe3a2658837fd7655427a5558bcf9b079343b7587e9d73c0eddccffb6f4149efc2407e3da55b855
@@ -0,0 +1 @@
1
+ 2.1.3
@@ -1,7 +1,8 @@
1
+ sudo: false
1
2
  language: ruby
2
3
  rvm:
3
4
  - ree
4
5
  - 1.9.3
5
- - 2.0
6
+ - 2.1.3
6
7
  notifications:
7
8
  email: false
@@ -4,11 +4,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'bigcartel-theme-fonts'
7
- spec.version = '1.1.1'
7
+ spec.version = '1.1.2'
8
8
  spec.authors = ['Big Cartel']
9
9
  spec.email = ['dev@bigcartel.com']
10
10
  spec.description = %q{A simple class for working with Big Cartel's supported theme fonts.}
11
- spec.summary = %q{A simple class for working with Big Cartel's supported theme fonts.}
11
+ spec.summary = %q{A simple class for working with Big Cartel's supported theme fonts from the browser and from Google Fonts.}
12
12
  spec.homepage = 'https://github.com/bigcartel/bigcartel-theme-fonts'
13
13
  spec.license = 'MIT'
14
14
 
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ['lib']
19
19
 
20
20
  spec.add_development_dependency 'bundler', '~> 1.3'
21
- spec.add_development_dependency 'rake'
22
- spec.add_development_dependency 'rspec'
23
- spec.add_development_dependency 'rr'
21
+ spec.add_development_dependency 'rake', '~> 10.5'
22
+ spec.add_development_dependency 'rspec', '~> 2.14'
23
+ spec.add_development_dependency 'rr', '~> 1.1'
24
24
  end
@@ -37,7 +37,7 @@ class ThemeFont < Struct.new(:name, :family, :collection)
37
37
  end
38
38
 
39
39
  def google_font_url_for_fonts(fonts)
40
- "//fonts.googleapis.com/css?family=#{ fonts.map { |font| font.gsub(' ', '+') }.join('|') }"
40
+ "//fonts.googleapis.com/css?family=#{ fonts.uniq.map { |font| font.gsub(' ', '+') }.join('|') }"
41
41
  end
42
42
 
43
43
  def google_font_url_for_all_fonts
@@ -73,11 +73,15 @@ describe ThemeFont do
73
73
 
74
74
  describe ".google_font_url_for_fonts" do
75
75
  it "should return a url for a given array of font names" do
76
- ThemeFont.google_font_url_for_fonts(['Bro Hey', 'Dude', 'Yeah']).should == "//fonts.googleapis.com/css?family=Bro+Hey|Dude|Yeah"
76
+ ThemeFont.google_font_url_for_fonts(['Oh Hey', 'Buddy', 'Yeah']).should == "//fonts.googleapis.com/css?family=Oh+Hey|Buddy|Yeah"
77
77
  end
78
78
 
79
79
  it "should return a url for a singular font in an array" do
80
- ThemeFont.google_font_url_for_fonts(['Bro Hey']).should == "//fonts.googleapis.com/css?family=Bro+Hey"
80
+ ThemeFont.google_font_url_for_fonts(['Oh Hey']).should == "//fonts.googleapis.com/css?family=Oh+Hey"
81
+ end
82
+
83
+ it "should only use unique font names" do
84
+ ThemeFont.google_font_url_for_fonts(['Yeah', 'Buddy', 'Yeah']).should == "//fonts.googleapis.com/css?family=Yeah|Buddy"
81
85
  end
82
86
  end
83
87
 
metadata CHANGED
@@ -1,80 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigcartel-theme-fonts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Big Cartel
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: '0'
33
+ version: '10.5'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: '0'
40
+ version: '10.5'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0'
47
+ version: '2.14'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '0'
54
+ version: '2.14'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rr
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
- version: '0'
61
+ version: '1.1'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
- version: '0'
68
+ version: '1.1'
78
69
  description: A simple class for working with Big Cartel's supported theme fonts.
79
70
  email:
80
71
  - dev@bigcartel.com
@@ -82,8 +73,9 @@ executables: []
82
73
  extensions: []
83
74
  extra_rdoc_files: []
84
75
  files:
85
- - .gitignore
86
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".ruby-version"
78
+ - ".travis.yml"
87
79
  - Gemfile
88
80
  - LICENSE.txt
89
81
  - README.md
@@ -97,34 +89,28 @@ files:
97
89
  homepage: https://github.com/bigcartel/bigcartel-theme-fonts
98
90
  licenses:
99
91
  - MIT
92
+ metadata: {}
100
93
  post_install_message:
101
94
  rdoc_options: []
102
95
  require_paths:
103
96
  - lib
104
97
  required_ruby_version: !ruby/object:Gem::Requirement
105
- none: false
106
98
  requirements:
107
- - - ! '>='
99
+ - - ">="
108
100
  - !ruby/object:Gem::Version
109
101
  version: '0'
110
- segments:
111
- - 0
112
- hash: -626503285004356200
113
102
  required_rubygems_version: !ruby/object:Gem::Requirement
114
- none: false
115
103
  requirements:
116
- - - ! '>='
104
+ - - ">="
117
105
  - !ruby/object:Gem::Version
118
106
  version: '0'
119
- segments:
120
- - 0
121
- hash: -626503285004356200
122
107
  requirements: []
123
108
  rubyforge_project:
124
- rubygems_version: 1.8.23
109
+ rubygems_version: 2.2.2
125
110
  signing_key:
126
- specification_version: 3
127
- summary: A simple class for working with Big Cartel's supported theme fonts.
111
+ specification_version: 4
112
+ summary: A simple class for working with Big Cartel's supported theme fonts from the
113
+ browser and from Google Fonts.
128
114
  test_files:
129
115
  - spec/spec_helper.rb
130
116
  - spec/theme_font_spec.rb