kustomer 0.1.0

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: 5c3ff7818a8935d657a4d7c1bed7bc8e7ccb847e
4
+ data.tar.gz: 69f82102e3dd060dab4bb963a1d8a453d276d28f
5
+ SHA512:
6
+ metadata.gz: ed48b51c88640f16b0c0b43e11e0e809828fd05047879a9dd2d6adf92716044d906c582d7c88e00bd47eaad625c807e0d83cb5c4891ba5223a720014e298b589
7
+ data.tar.gz: 6da18d3c0dc36ed1faaf288c03bed729065904f338192208673f4c7ae7decceec99f31afad852f336daa7a8a25f1d9f118281d3c24617ed1fa31d27b8c0510ef
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.0
5
+ before_install: gem install bundler -v 1.16.1
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 kustomer.gemspec
6
+ gemspec
@@ -0,0 +1,35 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ kustomer (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.3)
10
+ rake (10.5.0)
11
+ rspec (3.8.0)
12
+ rspec-core (~> 3.8.0)
13
+ rspec-expectations (~> 3.8.0)
14
+ rspec-mocks (~> 3.8.0)
15
+ rspec-core (3.8.0)
16
+ rspec-support (~> 3.8.0)
17
+ rspec-expectations (3.8.1)
18
+ diff-lcs (>= 1.2.0, < 2.0)
19
+ rspec-support (~> 3.8.0)
20
+ rspec-mocks (3.8.0)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.8.0)
23
+ rspec-support (3.8.0)
24
+
25
+ PLATFORMS
26
+ ruby
27
+
28
+ DEPENDENCIES
29
+ bundler (~> 1.16)
30
+ kustomer!
31
+ rake (~> 10.0)
32
+ rspec (~> 3.0)
33
+
34
+ BUNDLED WITH
35
+ 1.16.1
data/LICENSE ADDED
@@ -0,0 +1,150 @@
1
+ Copyright 2018 Anomalie, Inc.
2
+
3
+ ANOMALIE LICENSE AND DISTRIBUTION AGREEMENT
4
+
5
+ This Software License and Distribution Agreement (the "Agreement") is entered
6
+ into by and between Anomalie, Inc, with offices at 451 Hayes St, San
7
+ Francisco, CA 94103 ("Anomalie") and you ("Licensee"). By downloading or
8
+ using the Software (as defined below), you agree to the following terms:
9
+
10
+ 1. Definitions.
11
+
12
+ 1.1. "Application" means a Licensee installation or project that includes the
13
+ Software, in object code or executable form only.
14
+
15
+ 1.2. "Effective Date" means the date you first obtain a copy of the Software.
16
+
17
+ 1.3. "Revenue Limit" means the gross revenue accrued by Licensee in connection
18
+ with all Licensee Applications, taken together, for any 12-month period during
19
+ the term of this Agreement, with no deductions.
20
+
21
+ 1.4. "Software" means the included software libraries, including all
22
+ Updates supplied by Anomalie under this Agreement.
23
+
24
+ 1.5. "Update" means any correction, update, upgrade, patch or other
25
+ modification or addition to the Software made available to Licensee by Anomalie.
26
+
27
+ 2. License.
28
+
29
+ 2.1. Grant. Subject to the limitations of this Section 2, Anomalie hereby
30
+ grants to Licensee a nonexclusive, worldwide, non-transferable,
31
+ non-sublicenseable license, during the term of this Agreement: (i) to modify
32
+ the Software to create Applications that add substantial value to the Software;
33
+ (ii) to distribute copies of the Software, in object code form only, only as
34
+ part of Applications in accordance with this Section 2; (iii) to use the
35
+ Software to run Applications, including to provide a service consisting of
36
+ display of the Applications; and (iv) to reproduce copies of the Software,
37
+ solely as necessary to exercise the rights granted in clauses (i) through (iv).
38
+ Licensee may not sublicense any of these rights or licenses to any third party.
39
+ Licensee shall not provide any third party with access to the source code for
40
+ the Software without Anomalie' prior written permission.
41
+
42
+ The license granted in this Section 2.1 is subject to a Revenue Limit of
43
+ $25,000 and is only valid for Applications that fall within such Revenue Limit.
44
+ The license granted herein is royalty free, in consideration of the Revenue
45
+ Limit being a condition of the license granted herein.
46
+
47
+ 2.2. End User Licensing. If the Application is distributed, provided or sold
48
+ pursuant to an agreement between Licensee and an end user, Licensee shall
49
+ distribute each copy of the Software with an end user license agreement on the
50
+ same licensing terms applicable to the remainder of the Application, but that
51
+ is at least as favorable to Anomalie as this Agreement.
52
+
53
+ 2.3. Proprietary Notices. On each Software copy, Licensee shall reproduce all
54
+ copyright or other proprietary notices contained on the Software, as provided
55
+ by Anomalie. Licensee shall not alter or remove or in any other way obscure
56
+ or hide from display any Anomalie logo or proprietary notice from the
57
+ Application user interface or in the Software.
58
+
59
+ 2.4. Third Party Open Source Software. Notwithstanding Section 2.1, Licensee
60
+ acknowledges that certain components of the Software may be covered by
61
+ so-called "open source" software licenses ("Open Source Components"), which
62
+ means any software licenses approved as open source licenses by the Open Source
63
+ Initiative or any substantially similar licenses. To the extent required by the
64
+ licenses covering Open Source Components, the terms of such licenses will apply
65
+ to such Open Source Components in lieu of the terms of this Agreement. To the
66
+ extent the terms of the licenses applicable to Open Source Components prohibit
67
+ any of the restrictions in this Agreement with respect to such Open Source
68
+ Component, such restrictions will not apply to such Open Source Component. To
69
+ the extent the terms of the licenses applicable to Open Source Components
70
+ require Licensor to make an offer to provide source code or related information
71
+ in connection with the Open Source Components, such offer is hereby made.
72
+
73
+ 3. Ownership. As between the parties, Anomalie will retain all right, title,
74
+ and interest in the Software, and all intellectual property rights therein.
75
+
76
+ 4. Use of Anomalie Trademarks. Licensee shall state that the Application
77
+ includes the Software and may use such applicable trademarks, trade names and
78
+ logos of Anomalie (including all trademarks) as required to do so
79
+ (collectively, the "Anomalie Trademarks"). Any and all good will arising from
80
+ Licensee's use of the Anomalie Trademarks will inure solely to the benefit of
81
+ Anomalie. Licensee shall not assert any claim to the Anomalie Trademarks
82
+ (or any confusingly similar mark) or such good will. Licensee shall not
83
+ register any Anomalie Trademark, or any mark confusingly similar to any Heron
84
+ Arts Trademark, in any jurisdiction.
85
+
86
+ 5. Anomalie Portfolio. (i) Licensee hereby grants to Anomalie the right to
87
+ publicize Licensee's use of the Software and (ii) Anomalie may use Licensee's
88
+ logo on the Anomalie website in areas naming licensees of the software, and in
89
+ portfolios or marketing presentations listing licensees of the Software.
90
+
91
+ 6. Term and Termination.
92
+
93
+ 6.1. Term. This Agreement will commence on the Effective Date and continue
94
+ unless and until terminated as described herein.
95
+
96
+ 6.2. Default. If Licensee defaults in the performance of any of its material
97
+ obligations hereunder this Agreement and the licenses granted herein will
98
+ automatically terminate.
99
+
100
+ 6.3. Insolvency. This Agreement and the licenses granted herein will
101
+ automatically terminate, (i) upon the institution by Licensee of insolvency,
102
+ receivership or bankruptcy proceedings or any other proceedings for the
103
+ settlement of its debts, (ii) upon the institution of such proceedings against
104
+ Licensee, which are not dismissed or otherwise resolved in its favor within 60
105
+ days thereafter, (iii) upon Licensee making a general assignment for the
106
+ benefit of creditors, or (iv) upon Licensee's dissolution or ceasing to conduct
107
+ business in the ordinary course.
108
+
109
+ 6.4. Survival. The parties' rights and obligations of Sections 1, 3, 4, 5, 6.4,
110
+ 7, 8 and 9 will survive any termination or expiration of this Agreement. Upon
111
+ expiration or termination of this Agreement, all of Licensee's rights and
112
+ licenses with respect to the Software will terminate, except each Software end
113
+ user license properly granted as part of an Application before the effective
114
+ date of termination will survive in accordance with its terms.
115
+
116
+ 7. Warranty Disclaimer.
117
+
118
+ 7.1. DISCLAIMER. ANOMALIE MAKES NO WARRANTY, EXPRESS, IMPLIED, STATUTORY, OR
119
+ OTHERWISE, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY,
120
+ NON-INFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE
121
+ SOFTWARE.
122
+
123
+ 8. LIMITATION OF LIABILITY. ANOMALIE'S LIABILITY ARISING OUT OF THIS
124
+ AGREEMENT WILL NOT EXCEED $50. Anomalie WILL NOT BE LIABLE FOR LOST PROFITS
125
+ OR ANY CONSEQUENTIAL, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES, HOWEVER CAUSED
126
+ AND ON ANY THEORY OF LIABILITY, ARISING OUT OF THIS AGREEMENT. LICENSEE
127
+ ACKNOWLEDGES THAT THE ROYALTY-FREE NATURE OF THE LICENSE HEREIN IS BASED IN
128
+ PART UPON THESE LIMITATIONS, AND THAT THESE LIMITATIONS WILL APPLY
129
+ NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY.
130
+
131
+ 9. General. This Agreement is the entire agreement between the parties on the
132
+ subject matter hereof. No amendment or modification hereof will be valid or
133
+ binding upon the parties unless made in writing and signed by the duly
134
+ authorized representatives of both parties. The relationship of the parties
135
+ hereunder is that of independent contractors, and this Agreement will not be
136
+ construed to imply that either party is the agent, employee, or joint venturer
137
+ of the other. In the event that any provision of this Agreement is held to be
138
+ unenforceable, this Agreement will continue in full force and effect and will
139
+ be interpreted to reflect the original intent of the parties. This Agreement
140
+ will be governed by the laws of the State of California, without regard to its
141
+ conflict of laws principles. The parties consent to the personal and exclusive
142
+ jurisdiction of courts located in San Francisco, California. Licensee may not
143
+ assign this Agreement (by operation of law or otherwise) without the prior
144
+ written consent of Anomalie, and any prohibited assignment will be null and
145
+ void. Anomalie may assign this Agreement without consent in its sole
146
+ discretion. This Agreement will be binding upon and will inure to the benefit
147
+ of the parties permitted successors and assignees. Waiver by either party of a
148
+ breach of any provision of this Agreement or the failure by either party to
149
+ exercise any right hereunder will not operate or be construed as a waiver of
150
+ any subsequent breach of that right or as a waiver of any other right.
@@ -0,0 +1,33 @@
1
+ # Kustomer
2
+
3
+ A gem for easy ruby manipulation of the Kustomer API
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'kustomer'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install kustomer
20
+
21
+ ## Usage
22
+
23
+ TODO: Write usage instructions here
24
+
25
+ ## Development
26
+
27
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
28
+
29
+ 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).
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/dressanomalie/kustomer.
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "kustomer"
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__)
@@ -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,26 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'kustomer/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'kustomer'
8
+ spec.version = Kustomer::VERSION
9
+ spec.authors = ['Philihp Busby']
10
+ spec.email = ['philihp@gmail.com']
11
+
12
+ spec.summary = 'A convenient gem for accessing the Kustomer API'
13
+ spec.description = 'A convenient gem for manipulating your Kustomer instance through their standard API'
14
+ spec.homepage = 'https://github.com/dressanomalie/kustomer'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = 'exe'
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ['lib']
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.16'
24
+ spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'rspec', '~> 3.0'
26
+ end
@@ -0,0 +1,5 @@
1
+ require "kustomer/version"
2
+
3
+ module Kustomer
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module Kustomer
2
+ VERSION = '0.1.0'.freeze
3
+ end
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kustomer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Philihp Busby
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: A convenient gem for manipulating your Kustomer instance through their
56
+ standard API
57
+ email:
58
+ - philihp@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
66
+ - Gemfile
67
+ - Gemfile.lock
68
+ - LICENSE
69
+ - README.md
70
+ - Rakefile
71
+ - bin/console
72
+ - bin/setup
73
+ - kustomer.gemspec
74
+ - lib/kustomer.rb
75
+ - lib/kustomer/version.rb
76
+ homepage: https://github.com/dressanomalie/kustomer
77
+ licenses: []
78
+ metadata: {}
79
+ post_install_message:
80
+ rdoc_options: []
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubyforge_project:
95
+ rubygems_version: 2.6.8
96
+ signing_key:
97
+ specification_version: 4
98
+ summary: A convenient gem for accessing the Kustomer API
99
+ test_files: []