quark-publisher 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 013e858ef2331ca6629dae83892c87b6b76c4f66ad08b30075eead8c1a2fa261
4
+ data.tar.gz: 00efde7c8cab99509614833f7f33fc8cd9845fe4ca2d3b1eade49c415c8945e2
5
+ SHA512:
6
+ metadata.gz: dd3b6c824d92500431bc1204f33199abff38c07e6164170bf169f2f2ab6f2edd65648c570dabf71a4645134a26b277fde3c821b676a35023f13adff261f9925b
7
+ data.tar.gz: 8c6c105c229b315b24f653e48a87e04cd1afd9e4da356d099ed8cb2a76a5d2d103a7c3cfc7bfd61871aba854d3679039398df972a8728cf838a2d4f9bbb152b7
data/.gitignore ADDED
@@ -0,0 +1,92 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+
11
+ # Created by https://www.gitignore.io/api/rubymine+all
12
+
13
+ ### RubyMine+all ###
14
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
15
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
16
+
17
+ # User-specific stuff
18
+ .idea/**/workspace.xml
19
+ .idea/**/tasks.xml
20
+ .idea/**/usage.statistics.xml
21
+ .idea/**/dictionaries
22
+ .idea/**/shelf
23
+
24
+ # Generated files
25
+ .idea/**/contentModel.xml
26
+
27
+ # Sensitive or high-churn files
28
+ .idea/**/dataSources/
29
+ .idea/**/dataSources.ids
30
+ .idea/**/dataSources.local.xml
31
+ .idea/**/sqlDataSources.xml
32
+ .idea/**/dynamic.xml
33
+ .idea/**/uiDesigner.xml
34
+ .idea/**/dbnavigator.xml
35
+
36
+ # Gradle
37
+ .idea/**/gradle.xml
38
+ .idea/**/libraries
39
+
40
+ # Gradle and Maven with auto-import
41
+ # When using Gradle or Maven with auto-import, you should exclude module files,
42
+ # since they will be recreated, and may cause churn. Uncomment if using
43
+ # auto-import.
44
+ # .idea/modules.xml
45
+ # .idea/*.iml
46
+ # .idea/modules
47
+
48
+ # CMake
49
+ cmake-build-*/
50
+
51
+ # Mongo Explorer plugin
52
+ .idea/**/mongoSettings.xml
53
+
54
+ # File-based project format
55
+ *.iws
56
+
57
+ # IntelliJ
58
+ out/
59
+
60
+ # mpeltonen/sbt-idea plugin
61
+ .idea_modules/
62
+
63
+ # JIRA plugin
64
+ atlassian-ide-plugin.xml
65
+
66
+ # Cursive Clojure plugin
67
+ .idea/replstate.xml
68
+
69
+ # Crashlytics plugin (for Android Studio and IntelliJ)
70
+ com_crashlytics_export_strings.xml
71
+ crashlytics.properties
72
+ crashlytics-build.properties
73
+ fabric.properties
74
+
75
+ # Editor-based Rest Client
76
+ .idea/httpRequests
77
+
78
+ ### RubyMine+all Patch ###
79
+ # Ignores the whole .idea folder and all .iml files
80
+ # See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
81
+
82
+ .idea/
83
+
84
+ # Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
85
+
86
+ *.iml
87
+ modules.xml
88
+ .idea/misc.xml
89
+ *.ipr
90
+
91
+
92
+ # End of https://www.gitignore.io/api/rubymine+all
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.3.7
7
+ before_install: gem install bundler -v 1.16.3
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in quark-author.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,72 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ quark-publisher (0.1.0)
5
+ nokogiri (~> 1.8)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ansi (1.5.0)
11
+ builder (3.2.3)
12
+ coderay (1.1.2)
13
+ ffi (1.9.25)
14
+ formatador (0.2.5)
15
+ guard (2.14.2)
16
+ formatador (>= 0.2.4)
17
+ listen (>= 2.7, < 4.0)
18
+ lumberjack (>= 1.0.12, < 2.0)
19
+ nenv (~> 0.1)
20
+ notiffany (~> 0.0)
21
+ pry (>= 0.9.12)
22
+ shellany (~> 0.0)
23
+ thor (>= 0.18.1)
24
+ guard-compat (1.2.1)
25
+ guard-minitest (2.4.6)
26
+ guard-compat (~> 1.2)
27
+ minitest (>= 3.0)
28
+ listen (3.1.5)
29
+ rb-fsevent (~> 0.9, >= 0.9.4)
30
+ rb-inotify (~> 0.9, >= 0.9.7)
31
+ ruby_dep (~> 1.2)
32
+ lumberjack (1.0.13)
33
+ method_source (0.9.0)
34
+ mini_portile2 (2.3.0)
35
+ minitest (5.11.3)
36
+ minitest-reporters (1.3.1)
37
+ ansi
38
+ builder
39
+ minitest (>= 5.0)
40
+ ruby-progressbar
41
+ nenv (0.3.0)
42
+ nokogiri (1.8.4)
43
+ mini_portile2 (~> 2.3.0)
44
+ notiffany (0.1.1)
45
+ nenv (~> 0.1)
46
+ shellany (~> 0.0)
47
+ pry (0.11.3)
48
+ coderay (~> 1.1.0)
49
+ method_source (~> 0.9.0)
50
+ rake (10.4.2)
51
+ rb-fsevent (0.10.3)
52
+ rb-inotify (0.9.10)
53
+ ffi (>= 0.5.0, < 2)
54
+ ruby-progressbar (1.9.0)
55
+ ruby_dep (1.5.0)
56
+ shellany (0.0.1)
57
+ thor (0.20.0)
58
+
59
+ PLATFORMS
60
+ ruby
61
+
62
+ DEPENDENCIES
63
+ bundler (~> 1.16)
64
+ guard (~> 2.14)
65
+ guard-minitest (~> 2.4)
66
+ minitest (~> 5.0)
67
+ minitest-reporters (~> 1.3)
68
+ quark-publisher!
69
+ rake (~> 10.0)
70
+
71
+ BUNDLED WITH
72
+ 1.16.3
data/Guardfile ADDED
@@ -0,0 +1,5 @@
1
+ guard :minitest do
2
+ watch(%r{^test/(.*)\/?(.*)\_test.rb$})
3
+ watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}#{m[2]}_test.rb"; }
4
+ watch(%r{^test/test_helper\.rb$}) { 'test' }
5
+ end
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # Quark::Author
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/quark/author`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'quark-author'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install quark-author
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/quark-author.
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "quark/author"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,78 @@
1
+ require "quark/publisher/version"
2
+ require "quark/publisher/document"
3
+
4
+ module Quark
5
+ module Publisher
6
+ class << self
7
+ attr_accessor :configuration
8
+ # @!attribute configuration
9
+ # @return [Quark::Publisher::Configuration] Object used to configure the Quark::Author library
10
+ end
11
+
12
+
13
+ # Configuration block used to configure the library.
14
+ #
15
+ # @yield [Quark::Publisher::Configuration]
16
+ #
17
+ # @example An example configuration
18
+ # Quark::Publisher.configure do |config|
19
+ # config.api_key = '123456'
20
+ # end
21
+ def self.configure
22
+ yield configuration
23
+ self.configuration
24
+ end
25
+
26
+ # Method used to fetch the configuration object
27
+ #
28
+ # @return [Quark::Publisher::Configuration]
29
+ def self.configuration
30
+ @configuration ||= Configuration.new
31
+ end
32
+
33
+ # Method used to reset configuration. Primarily required during testing.
34
+ #
35
+ # @return [Quark::Publisher::Configuration]
36
+ def self.reset
37
+ @configuration = Configuration.new
38
+ end
39
+
40
+ # Method used during testing to temporarily set configurations and then immediately reset the configuration
41
+ #
42
+ # @example An example configuration
43
+ # Quark::Publisher.test_configure do |config|
44
+ # config.username = '123545'
45
+ #
46
+ # assert_equal '123545', Quark::Publisher.configuration.username
47
+ # end
48
+ #
49
+ # @return [Quark::Publisher::Configuration]
50
+ def self.test_configure
51
+ yield configuration
52
+ self.reset
53
+ end
54
+
55
+ class Configuration
56
+ # Your assigned username for the Quark Publisher software
57
+ #
58
+ # You can set the username in the configuration for this library.
59
+ #
60
+ # Quark::Publisher.configure {|config| config.username = 'author1234'}
61
+ attr_accessor :username
62
+
63
+ # Your password for the Quark Publisher software
64
+ #
65
+ # You can set the password in the configuration for this library.
66
+ #
67
+ # Quark::Publisher.configure {|config| config.password = 'password'}
68
+ attr_accessor :password
69
+
70
+ # The base uri for the Quark Publisher software
71
+ #
72
+ # You can set the base uri in the configuration for this library.
73
+ #
74
+ # Quark::Publisher.configure {|config| config.base_uri = 'https://quarkendpoint.com/api/'}
75
+ attr_accessor :base_uri
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,6 @@
1
+ module Quark
2
+ module Publisher
3
+ class Document
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ module Quark
2
+ module Publisher
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,31 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "quark/publisher/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "quark-publisher"
8
+ spec.version = Quark::Publisher::VERSION
9
+ spec.authors = ["Matt Orahood"]
10
+ spec.email = ["morahood@gmail.com"]
11
+
12
+ spec.summary = "A Ruby wrapper for the Quark Publisher web services."
13
+ spec.description = "A Ruby wrapper for the Quark Publisher web services."
14
+
15
+ # Specify which files should be added to the gem when it is released.
16
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency "nokogiri", "~> 1.8"
25
+ spec.add_development_dependency "bundler", "~> 1.16"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "minitest", "~> 5.0"
28
+ spec.add_development_dependency 'minitest-reporters', '~> 1.3'
29
+ spec.add_development_dependency 'guard', '~> 2.14'
30
+ spec.add_development_dependency 'guard-minitest', '~> 2.4'
31
+ end
metadata ADDED
@@ -0,0 +1,154 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: quark-publisher
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Matt Orahood
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: nokogiri
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-reporters
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: guard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.14'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.14'
97
+ - !ruby/object:Gem::Dependency
98
+ name: guard-minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.4'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '2.4'
111
+ description: A Ruby wrapper for the Quark Publisher web services.
112
+ email:
113
+ - morahood@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".travis.yml"
120
+ - Gemfile
121
+ - Gemfile.lock
122
+ - Guardfile
123
+ - README.md
124
+ - Rakefile
125
+ - bin/console
126
+ - bin/setup
127
+ - lib/quark/publisher.rb
128
+ - lib/quark/publisher/document.rb
129
+ - lib/quark/publisher/version.rb
130
+ - quark-publisher.gemspec
131
+ homepage:
132
+ licenses: []
133
+ metadata: {}
134
+ post_install_message:
135
+ rdoc_options: []
136
+ require_paths:
137
+ - lib
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ requirements: []
149
+ rubyforge_project:
150
+ rubygems_version: 2.7.7
151
+ signing_key:
152
+ specification_version: 4
153
+ summary: A Ruby wrapper for the Quark Publisher web services.
154
+ test_files: []