chef-telemetry 0.1.0 → 0.1.7

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: 61601e9dba3feb0dbe4313824653b9f0f0302fdce98879dac219837767fb04d7
4
- data.tar.gz: 84b5dd447cf08674f0c6ffa9286eb0294036ddae2624bb9ccc062ce7eef5018c
3
+ metadata.gz: 885ef4976d483115d359b9330c9285e438726a0559e085e72fb594060699be1a
4
+ data.tar.gz: af3125fd0f1fbc8ef4f00a0d49bda5ee499e37043324a49181d22c2f12fdb607
5
5
  SHA512:
6
- metadata.gz: d403ba35c8ce61a9837c51afe82d7cf479432b6c48be0ab3a0b29782e3f86874d8b6fcf7672da50dbffe538688cf7671d0a3b888743821d60c2545ade782431b
7
- data.tar.gz: 1ffad4f6f8a1245e6642f8fcb9a793bff3c40967273e6df6422c78cac8d1f4e03cfa14ecc72f7bef72630c15061d63551ac3439d4ff64214cdd2f2bd22a6a7ac
6
+ metadata.gz: 0be728dcd1545b51801f57e2e847cc0d87152ce3e2dc2d18d4bb4657f6303f4ff949971c428bdf054f86753a1965316af92e0767a1dddcf0ada0d31df0a2d909
7
+ data.tar.gz: 67cb8e51c967922479a1d1a7cb7f0b5f2b1f77ac3525513ddf26147d187fd7b560d48dea969b2b043b75e539f23303ab8a58b28b475378bda017e4a4bac0d6d6
@@ -4,8 +4,8 @@ require "chef-config/windows"
4
4
  # Decision allows us to inspect whether the user has made a decision to opt in or opt out of telemetry.
5
5
  class Telemetry
6
6
  module Decision
7
- OPT_OUT_FILE = "telemetry_opt_out"
8
- OPT_IN_FILE = "telemetry_opt_in"
7
+ OPT_OUT_FILE = "telemetry_opt_out".freeze
8
+ OPT_IN_FILE = "telemetry_opt_in".freeze
9
9
 
10
10
  class << self
11
11
  def opt_out?
@@ -1,3 +1,3 @@
1
1
  class Telemetry
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.7".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-telemetry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-16 00:00:00.000000000 Z
11
+ date: 2018-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,34 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.15'
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '11.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '11.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
27
  - !ruby/object:Gem::Dependency
56
28
  name: http
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -114,22 +86,14 @@ executables: []
114
86
  extensions: []
115
87
  extra_rdoc_files: []
116
88
  files:
117
- - ".gitignore"
118
- - ".rspec"
119
- - ".travis.yml"
120
89
  - LICENSE
121
- - README.md
122
- - Rakefile
123
- - appveyor.yml
124
- - chef-telemetry.gemspec
125
- - gems.rb
126
90
  - lib/telemetry.rb
127
91
  - lib/telemetry/client.rb
128
92
  - lib/telemetry/decision.rb
129
93
  - lib/telemetry/event.rb
130
94
  - lib/telemetry/session.rb
131
95
  - lib/telemetry/version.rb
132
- homepage: https://www.chef.io
96
+ homepage: https://github.com/chef/chef-telemetry
133
97
  licenses:
134
98
  - Apache-2.0
135
99
  metadata: {}
@@ -152,5 +116,6 @@ rubyforge_project:
152
116
  rubygems_version: 2.7.6
153
117
  signing_key:
154
118
  specification_version: 4
155
- summary: Send user actions to the Chef telemetry system. See RFC-xxx for further information
119
+ summary: Send user actions to the Chef telemetry system. See Chef RFC-051 for further
120
+ information
156
121
  test_files: []
data/.gitignore DELETED
@@ -1,14 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /gems.locked
5
- /_yardoc/
6
- /coverage/
7
- /doc/
8
- /pkg/
9
- /spec/reports/
10
- /tmp/
11
-
12
- # rspec failure tracking
13
- .rspec_status
14
- /tags
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -1,23 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- gemfile: gems.rb
4
-
5
- before_install:
6
- - gem install bundler
7
- - bundle --version
8
- - gem update --system
9
- - gem --version
10
-
11
- matrix:
12
- include:
13
- - rvm: 2.3.3
14
- - rvm: 2.4.2
15
- - rvm: ruby-head
16
- allow_failures:
17
- - rvm: ruby-head
18
-
19
- branches:
20
- only:
21
- - master
22
-
23
- script: bundle exec rake
data/README.md DELETED
@@ -1,35 +0,0 @@
1
- # Chef::Telemetry
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/chef/telemetry`. 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 'chef-telemetry'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install chef-telemetry
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 spec` 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/thommay/chef-telemetry.
data/Rakefile DELETED
@@ -1,16 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => [:spec, :style]
7
-
8
- begin
9
- require "chefstyle"
10
- require "rubocop/rake_task"
11
- RuboCop::RakeTask.new(:style) do |task|
12
- task.options += ["--display-cop-names", "--no-color"]
13
- end
14
- rescue LoadError
15
- puts "chefstyle/rubocop is not available."
16
- end
@@ -1,30 +0,0 @@
1
- version: "master-{build}"
2
-
3
- os: Windows Server 2012 R2
4
- platform:
5
- - x64
6
-
7
- clone_depth: 1
8
- skip_tags: true
9
- skip_branch_with_pr: true
10
- branches:
11
- only:
12
- - master
13
-
14
- # caching vendor/bundle appears to break horribly in the face of gems checked out of git
15
- # cache:
16
- # - vendor/bundle
17
-
18
- install:
19
- - ps: iex (irm https://omnitruck.chef.io/install.ps1); Install-Project -Project chefdk -channel stable
20
- - bundle config --local path vendor/bundle
21
- - SET CI=true
22
- - SET BUNDLE_WITHOUT=changelog:style
23
-
24
- build_script:
25
- - ps: c:\opscode\chefdk\bin\chef.bat shell-init powershell | iex
26
- - bundle install || bundle install || bundle install
27
-
28
- test_script:
29
- - SET SPEC_OPTS=--format progress
30
- - c:\opscode\chefdk\bin\chef.bat exec bundle exec rake spec
@@ -1,28 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "telemetry/version"
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "chef-telemetry"
8
- spec.version = Telemetry::VERSION
9
-
10
- spec.email = "info@chef.io"
11
- spec.homepage = "https://www.chef.io"
12
- spec.license = "Apache-2.0"
13
- spec.authors = ["Chef Software, Inc."]
14
- spec.summary = %q{Send user actions to the Chef telemetry system. See RFC-xxx for further information}
15
-
16
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
- f.match(%r{^(test|spec|features)/})
18
- end
19
- spec.require_paths = ["lib"]
20
-
21
- spec.add_development_dependency "bundler", "~> 1.15"
22
- spec.add_development_dependency "rake", "~> 11.0"
23
- spec.add_development_dependency "rspec", "~> 3.0"
24
- spec.add_dependency "http", "~> 2.2"
25
- spec.add_dependency "ffi-yajl", "~> 2.2"
26
- spec.add_dependency "concurrent-ruby", "~> 1.0"
27
- spec.add_dependency "chef-config"
28
- end
data/gems.rb DELETED
@@ -1,10 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
-
5
- group :development, :test do
6
- gem "chefstyle"
7
- end
8
-
9
- # Specify your gem's dependencies in chef-telemetry.gemspec
10
- gemspec