webflow-ruby 0.6.0 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f0ae105e0b3751752fb45b19468c361c969c283565bc604ee99a534f3bc93a3
4
- data.tar.gz: d81ca44d2625e44a07b67fe7e71f8b7cb7133a89e861dc62abaa0fb1da22e35f
3
+ metadata.gz: f4c73ca10bddf602a11d63a305e8147cfed9b5472c59d65a153844a3302bce45
4
+ data.tar.gz: a72c6ba8f56a4a1e0f2e9541673865569aec4baa8c11cf840f44f0088def8fb8
5
5
  SHA512:
6
- metadata.gz: 1c458dee0176fc2a97b6df6d67415a6c3ed88d83afb6e7991857db100bbd193a0208501e8c11b0d0628260af641630fd943536d885d9716277a54c11d76dff0f
7
- data.tar.gz: de5e2448a9121fd9320f38ef74996a9201fd0d802079332e0666d0744bb8643019c1e007d4e59ef20e095e4dc7decc7b542c92edcdce24dd7682c8a49dfa95d8
6
+ metadata.gz: f2b7e05783dfb5205b4916519764e0a94eb8a4ca859095a423a8a4b07757d721a526a16f1aae92a484110b9377ce92fac169d523c9949159b0f26cb1064e3251
7
+ data.tar.gz: 3b3746a6da9a951111aff2cacc3dca8fa90291a378ba765445982b4d20c913c6b540a1a74e119dce9b5ded593e58a4de575f06affb83ad1d35983b8c56486000
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.6.4
@@ -1,3 +1,7 @@
1
+ ## 0.7.0
2
+
3
+ * [FEATURE] Configuration class to store api token https://github.com/penseo/webflow-ruby/pull/6 😍 @mateuscruz
4
+
1
5
  ## 0.6.0
2
6
 
3
7
  * [CHANGE] Use pure ruby dependencies
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webflow-ruby (0.6.0)
4
+ webflow-ruby (0.7.0)
5
5
  http
6
6
 
7
7
  GEM
@@ -50,4 +50,4 @@ DEPENDENCIES
50
50
  webmock
51
51
 
52
52
  BUNDLED WITH
53
- 2.0.2
53
+ 1.17.2
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 phoet
3
+ Copyright (c) 2019 phoet
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -4,8 +4,8 @@ module Webflow
4
4
  class Client
5
5
  HOST = 'https://api.webflow.com'
6
6
 
7
- def initialize(token)
8
- @token = token
7
+ def initialize(token = nil)
8
+ @token = token || Webflow.config.api_token
9
9
  @rate_limit = {}
10
10
  end
11
11
 
@@ -0,0 +1,15 @@
1
+ module Webflow
2
+ class << self
3
+ def config
4
+ @config ||= Config.new
5
+ end
6
+
7
+ def configure
8
+ yield config
9
+ end
10
+ end
11
+
12
+ class Config
13
+ attr_accessor :api_token
14
+ end
15
+ end
@@ -1,2 +1,3 @@
1
1
  require 'webflow/version'
2
+ require 'webflow/config'
2
3
  require 'webflow/client'
@@ -1,3 +1,3 @@
1
1
  module Webflow
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webflow-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - phoet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-29 00:00:00.000000000 Z
11
+ date: 2019-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -130,6 +130,7 @@ files:
130
130
  - bin/setup
131
131
  - lib/webflow.rb
132
132
  - lib/webflow/client.rb
133
+ - lib/webflow/config.rb
133
134
  - lib/webflow/ruby.rb
134
135
  - lib/webflow/version.rb
135
136
  - webflow.gemspec
@@ -152,8 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
153
  - !ruby/object:Gem::Version
153
154
  version: '0'
154
155
  requirements: []
155
- rubyforge_project:
156
- rubygems_version: 2.7.6
156
+ rubygems_version: 3.0.3
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Webflow API bindings for Ruby