typekit_domain_manager 0.1.0.pre → 0.1.0
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 +4 -4
- data/README.md +25 -7
- data/lib/typekit_domain_manager/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 478cec2c00db8bfdf088beaa2bd8477c8b6a75b2
|
4
|
+
data.tar.gz: ceb2452ada8c141fd4b23e6b77c80dd8a44a47cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc43ebc91d4a09eb24d02cbc7ce516874fd9aec1f4b273b7b4a1b4d03496d4390dfd8c4c42d2311d9fa3e37e1e9a5df250a971e84062a8f07e80e3d32d1cb775
|
7
|
+
data.tar.gz: fdb6808dda0a7a1663905bbb5bb1857dce64ef12698fa10aad7c0634049ca19629db032b0f119bc29c44b6832345f77702be01e14b7623b8a011bb839f3e1d88
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# TypeKit Domain Manager
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Provides an easy interface to dynamically manage TypeKit domain whitelists.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,28 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
TypeKit Domain Manager is made up of a single class and three methods. It's very easy to interact with:
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
typekit_api_key = 'your typekit api key'
|
27
|
+
typekit_kit_id = 'your typekit kit id'
|
28
|
+
|
29
|
+
# Create a new instance of the domain manager
|
30
|
+
domain_manager = TypekitDomainManager::Kit.new typekit_api_key, typekit_kit_id
|
31
|
+
|
32
|
+
# Add a new domain to the whitelist
|
33
|
+
domain_manager.add_domain 'example.com'
|
34
|
+
|
35
|
+
# Remove a domain from the whitelist
|
36
|
+
domain_manager.remove_domain 'example.com'
|
37
|
+
|
38
|
+
# Get a list of domains
|
39
|
+
domain_manager.get_domains
|
40
|
+
```
|
41
|
+
|
42
|
+
That's all there is to it. If you hit any snags, please do open an issue or submit a pull request.
|
43
|
+
|
44
|
+
Head over to the [TypeKit site for an API key](https://typekit.com/account/tokens), and visit the 'Settings' screen for a kit to get its ID.
|
26
45
|
|
27
46
|
## Development
|
28
47
|
|
@@ -32,10 +51,9 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
51
|
|
33
52
|
## Contributing
|
34
53
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
54
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/danielgroves/typekit_domain_manager. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
55
|
|
37
56
|
|
38
57
|
## License
|
39
58
|
|
40
59
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typekit_domain_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Groves
|
@@ -85,12 +85,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - "
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
90
|
+
version: '0'
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.
|
93
|
+
rubygems_version: 2.5.1
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Easy domain control for TypeKit Kits.
|