apiaryio 0.11.1 → 0.12.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
  SHA1:
3
- metadata.gz: 1417d99a9e588c993ef580607fcc2025e0d61c70
4
- data.tar.gz: 1985f7eef3dab74baaeadf733a12d2292c0727c4
3
+ metadata.gz: 2b5a9a508ac91fb4ca1ab87d4c049d9f9f88551d
4
+ data.tar.gz: 92cf2656707a7051409ebcb3d91f4eb434d0d9b0
5
5
  SHA512:
6
- metadata.gz: 11fa8c0d486ee15f901a63940578954090bd68bf2fe7357acc26f68d43b767929f62bfe9d605abfde97e608dc1a380912eae6b7081ef2d9c02e5aff28bc89897
7
- data.tar.gz: 6337d8bf20fc985c68d5c73725d15a88053463135c5db62d38176090026eb04b810b84574730de8cdf244aa364f48693ac37fa8ee39c9b6a9b7cd59a109c338f
6
+ metadata.gz: 005253ed36028b9611b035c836bf8a344a41eb23b817f960ce10148830137b591fa2290abfbe4a498711f27927fa95be60b454618a5e0ee5c84cbefadbaf87ba
7
+ data.tar.gz: e79a3fb738bf9b5c5f0a1a33757f1e60234c8f4e197c51ef400f6a4787108aa95e268a34a3549d62e747d726dbfa26297d23f1e114c421cbc3309749ef6714fd
@@ -0,0 +1,42 @@
1
+ version: 2
2
+ workflows:
3
+ version: 2
4
+ test:
5
+ jobs:
6
+ - test-2.3
7
+ - test-2.4
8
+ - test-2.5
9
+ jobs:
10
+ test-2.3: &test-template
11
+ docker:
12
+ - image: circleci/ruby:2.3-browsers
13
+ steps:
14
+ - checkout
15
+ - run:
16
+ name: Install bundler
17
+ command: |
18
+ gem install bundler
19
+ - run:
20
+ name: Install deps
21
+ command: |
22
+ bundle install
23
+ - run:
24
+ name: Run rubocop
25
+ command: |
26
+ bundle exec rubocop --config .rubocop_todo.yml
27
+ - run:
28
+ name: Run rspec
29
+ command: |
30
+ bundle exec rspec spec
31
+ - run:
32
+ name: Run cucumber
33
+ command: |
34
+ bundle exec cucumber
35
+ test-2.4:
36
+ <<: *test-template
37
+ docker:
38
+ - image: circleci/ruby:2.4-browsers
39
+ test-2.5:
40
+ <<: *test-template
41
+ docker:
42
+ - image: circleci/ruby:2.5-browsers
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /test/version_tmp/
10
10
  /tmp/
11
11
  /vendor
12
+ pmip.rb
12
13
 
13
14
  ## Specific to RubyMotion:
14
15
  .dat*
@@ -36,3 +37,9 @@ Gemfile.lock
36
37
 
37
38
  # testing
38
39
  spec/fixtures/test.html
40
+
41
+ # idea ide
42
+ /.idea
43
+
44
+ # netbeans IDE
45
+ /nbproject
@@ -5,7 +5,7 @@ rvm:
5
5
  - "ruby-2.3.1"
6
6
  - "ruby-2.4.0"
7
7
  - "ruby-2.5.0"
8
- - "jruby-9.0.0.0"
8
+ - "jruby-9.1.0.0"
9
9
 
10
10
  matrix:
11
11
  allow_failures:
@@ -58,11 +58,8 @@ module Apiary::Command
58
58
 
59
59
  return if source.nil?
60
60
 
61
- begin
62
- JSON.parse(source)
63
- abort('Did you forget the --json flag?') unless @options.json
64
- rescue; end
65
61
  source = convert_from_json(source) if @options.json
62
+
66
63
  data = {
67
64
  code: source,
68
65
  messageToSave: @options.message,
@@ -1,3 +1,3 @@
1
1
  module Apiary
2
- VERSION = '0.11.1'.freeze
2
+ VERSION = '0.12.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiaryio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apiary Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2018-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -200,6 +200,7 @@ executables:
200
200
  extensions: []
201
201
  extra_rdoc_files: []
202
202
  files:
203
+ - ".circleci/config.yml"
203
204
  - ".gitignore"
204
205
  - ".rspec"
205
206
  - ".rubocop_todo.yml"
@@ -212,7 +213,6 @@ files:
212
213
  - apiary.gemspec
213
214
  - appveyor.yml
214
215
  - bin/apiary
215
- - circle.yml
216
216
  - features/fetch.feature
217
217
  - features/preview.feature
218
218
  - features/publish.feature
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  requirements: []
277
277
  rubyforge_project:
278
- rubygems_version: 2.4.8
278
+ rubygems_version: 2.5.2.3
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: Apiary.io CLI
data/circle.yml DELETED
@@ -1,16 +0,0 @@
1
- machine:
2
- environment:
3
- RUBY_VERSIONS: 2.2.2,2.3.1,2.4.0,2.5.0
4
-
5
- dependencies:
6
- override:
7
- - rvm get head
8
- - rvm install $RUBY_VERSIONS
9
- - rvm $RUBY_VERSIONS --verbose do gem install bundler
10
- - rvm $RUBY_VERSIONS --verbose do bundle install
11
-
12
- test:
13
- override:
14
- - rvm $RUBY_VERSIONS --verbose do bundle exec rubocop --config .rubocop_todo.yml
15
- - rvm $RUBY_VERSIONS --verbose do bundle exec rspec spec
16
- - rvm $RUBY_VERSIONS --verbose do bundle exec cucumber