fit_js 0.94.10 → 0.94.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08226e4f4afbae74c55f61e823fe1952fd3c5333f4cc26dbaa79dd050e666f8d'
4
- data.tar.gz: 50a9cd789404a10ed47af53352f3ed741b5248fcee513c7cf56579b80dc39162
3
+ metadata.gz: 35fe6dfbe6bed02b88cb3959bd38d2b0a64b6f1bbd36c6bcfd5bdf6ca16f1b9a
4
+ data.tar.gz: 8dbde6717597e512b806476128f1d206f97ae45788279e0ee09255c951229cbc
5
5
  SHA512:
6
- metadata.gz: 136f4bd542f214b95b7afe737f1a1c9b945e3aabfdcc21ead1de5fea010548175cac317092d34aa717e1fbdde48e7906a253339950d1740ef2669f11370c993a
7
- data.tar.gz: 67def842cd7144302ed26e9a4d54a9de0a660a6cf363a7082c1674daa88d14bc9aa42fd4ea223a9b9fbceec0703e27923ae0fb29deddfd60ef9323321736d8bf
6
+ metadata.gz: 9b6ed28622bb4252698dd57b63583cff556d299d49ef26a4036dc75739ebe99eb294f3f8d44d9a9a6dc33d8f6195b5805ce745f17e3e34cb6f0c3c020a23c4b4
7
+ data.tar.gz: 4c8b27548053c49a064fcdb8ac6ca95c87f30f1f6690ac72861798c47475a5b854245070179a61186bf1ed89015f52038fa6b3a98b65e259948f9ee1a00bb533
data/.DS_Store CHANGED
Binary file
Binary file
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/fit_js.gemspec CHANGED
@@ -1,26 +1,28 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'fitjs/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "fit_js"
7
- s.version = "0.94.10"
7
+ s.version = Fitjs::VERSION
8
8
  s.summary = "Javascript Wrapper for FIT Files"
9
9
  s.description = "The javascript library for the Garmin FIT file format"
10
10
  s.authors = ["Justin Dunn"]
11
11
  s.email = "axeouse@gmail.com"
12
- s.files = ["lib", "app/assets/javascript"]
13
12
  s.homepage =
14
13
  "https://rubygems.org/gems/fit_js"
15
14
  s.license = "MIT"
16
- s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
17
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
- end
19
- s.bindir = "exe"
20
- s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
- s.require_paths = ["lib"]
22
15
 
23
- s.add_development_dependency "bundler", "~> 1.16"
24
- s.add_development_dependency "rake", "~> 10.0"
16
+
17
+ # Dummy Rails app dependencies
18
+ s.add_development_dependency 'actionpack', '>= 4.1.5'
19
+ s.add_development_dependency 'activesupport', '>= 4.1.5'
20
+ s.add_development_dependency 'json', '>= 1.8.1'
21
+ s.add_development_dependency 'sprockets-rails', '>= 2.1.3'
22
+ s.add_development_dependency 'jquery-rails', '>= 3.1.0'
23
+ s.add_development_dependency 'slim-rails'
24
+ s.add_development_dependency 'uglifier'
25
+
25
26
  s.add_runtime_dependency 'autoprefixer-rails', '~> 9.1', '>= 9.1.0'
27
+ s.files = `git ls-files`.split("\n")
26
28
  end
Binary file
Binary file
@@ -0,0 +1,11 @@
1
+ module Fitjs
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ initializer 'fitjs.assets.precompile' do |app|
5
+ %w(javascripts).each do |sub|
6
+ app.config.assets.paths << root.join('assets', sub).to_s
7
+ end
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,4 @@
1
+ module Fitjs
2
+ VERSION = "0.94.11"
3
+ API_VERSION = "0.94.0"
4
+ end
data/lib/fitjs.rb CHANGED
@@ -1,14 +1,49 @@
1
1
  require "fitjs/rails/version"
2
2
 
3
3
  module Fitjs
4
- class Fitjs < Rails::Railtie
5
- end
6
-
7
- class Engine < ::Rails::Engine
8
- initializer 'fitjs.assets.precompile' do |app|
9
- %w(javascripts).each do |sub|
10
- app.config.assets.paths << root.join('assets', sub).to_s
4
+ class << self
5
+ # Inspired by Bootstrap
6
+ def load!
7
+ if rails?
8
+ register_rails_engine
9
+ elsif sprockets?
10
+ register_sprockets
11
11
  end
12
12
  end
13
+
14
+ # Paths
15
+ def gem_path
16
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
17
+ end
18
+
19
+ def javascripts_path
20
+ File.join assets_path, 'javascripts'
21
+ end
22
+
23
+ def assets_path
24
+ @assets_path ||= File.join gem_path, 'assets'
25
+ end
26
+
27
+ # Environment detection helpers
28
+ def sprockets?
29
+ defined?(::Sprockets)
30
+ end
31
+
32
+ def rails?
33
+ defined?(::Rails)
34
+ end
35
+
36
+ private
37
+
38
+ def register_rails_engine
39
+ require 'fitjs/engine'
40
+ end
41
+
42
+ def register_sprockets
43
+ Sprockets.append_path(javascripts_path)
44
+ end
13
45
  end
46
+ end
47
+
48
+ Fitjs.load!
14
49
  end
metadata CHANGED
@@ -1,43 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fit_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.94.10
4
+ version: 0.94.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Dunn
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2023-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: actionpack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
19
+ version: 4.1.5
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 4.1.5
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: 4.1.5
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 4.1.5
41
+ - !ruby/object:Gem::Dependency
42
+ name: json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 1.8.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 1.8.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: sprockets-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.3
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.1.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: jquery-rails
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 3.1.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 3.1.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: slim-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: uglifier
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
39
109
  - !ruby/object:Gem::Version
40
- version: '10.0'
110
+ version: '0'
41
111
  - !ruby/object:Gem::Dependency
42
112
  name: autoprefixer-rails
43
113
  requirement: !ruby/object:Gem::Requirement
@@ -72,25 +142,27 @@ files:
72
142
  - LICENSE.txt
73
143
  - README.md
74
144
  - Rakefile
75
- - app/.DS_Store
76
- - app/assets/.DS_Store
77
- - app/assets/javascripts/accumulator.js
78
- - app/assets/javascripts/bit-stream.js
79
- - app/assets/javascripts/crc-calculator.js
80
- - app/assets/javascripts/decoder.js
81
- - app/assets/javascripts/fit.js
82
- - app/assets/javascripts/fitjs.js
83
- - app/assets/javascripts/index.js
84
- - app/assets/javascripts/profile.js
85
- - app/assets/javascripts/stream.js
86
- - app/assets/javascripts/utils-hr-mesg.js
87
- - app/assets/javascripts/utils-internal.js
88
- - app/assets/javascripts/utils.js
145
+ - assets/.DS_Store
146
+ - assets/javascripts/accumulator.js
147
+ - assets/javascripts/bit-stream.js
148
+ - assets/javascripts/crc-calculator.js
149
+ - assets/javascripts/decoder.js
150
+ - assets/javascripts/fit.js
151
+ - assets/javascripts/fitjs.js
152
+ - assets/javascripts/index.js
153
+ - assets/javascripts/profile.js
154
+ - assets/javascripts/stream.js
155
+ - assets/javascripts/utils-hr-mesg.js
156
+ - assets/javascripts/utils-internal.js
157
+ - assets/javascripts/utils.js
89
158
  - bin/console
90
159
  - bin/setup
91
160
  - fit_js.gemspec
161
+ - lib/.DS_Store
92
162
  - lib/fitjs.rb
93
- - lib/fitjs/rails/version.rb
163
+ - lib/fitjs/.DS_Store
164
+ - lib/fitjs/engine.rb
165
+ - lib/fitjs/version.rb
94
166
  - sig/fitjs.rbs
95
167
  homepage: https://rubygems.org/gems/fit_js
96
168
  licenses:
@@ -1,5 +0,0 @@
1
- module Fitjs
2
- module Rails
3
- VERSION = "0.94.10"
4
- end
5
- end