fit_js 0.94.9 → 0.94.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/{app/assets → assets}/.DS_Store +0 -0
- data/{app/assets → assets}/javascripts/accumulator.js +0 -0
- data/{app/assets → assets}/javascripts/bit-stream.js +0 -0
- data/{app/assets → assets}/javascripts/crc-calculator.js +0 -0
- data/{app/assets → assets}/javascripts/decoder.js +0 -0
- data/{app/assets → assets}/javascripts/fit.js +0 -0
- data/{app/assets → assets}/javascripts/fitjs.js +0 -0
- data/{app/assets → assets}/javascripts/index.js +0 -0
- data/{app/assets → assets}/javascripts/profile.js +0 -0
- data/{app/assets → assets}/javascripts/stream.js +0 -0
- data/{app/assets → assets}/javascripts/utils-hr-mesg.js +0 -0
- data/{app/assets → assets}/javascripts/utils-internal.js +0 -0
- data/{app/assets → assets}/javascripts/utils.js +0 -0
- data/fit_js.gemspec +13 -11
- data/{app → lib}/.DS_Store +0 -0
- data/lib/fitjs/.DS_Store +0 -0
- data/lib/fitjs/engine.rb +11 -0
- data/lib/fitjs/version.rb +4 -0
- data/lib/fitjs.rb +42 -6
- metadata +100 -28
- data/lib/fitjs/rails/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35fe6dfbe6bed02b88cb3959bd38d2b0a64b6f1bbd36c6bcfd5bdf6ca16f1b9a
|
4
|
+
data.tar.gz: 8dbde6717597e512b806476128f1d206f97ae45788279e0ee09255c951229cbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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 =
|
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
|
-
|
24
|
-
|
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
|
data/{app → lib}/.DS_Store
RENAMED
Binary file
|
data/lib/fitjs/.DS_Store
ADDED
Binary file
|
data/lib/fitjs/engine.rb
ADDED
data/lib/fitjs.rb
CHANGED
@@ -1,13 +1,49 @@
|
|
1
1
|
require "fitjs/rails/version"
|
2
2
|
|
3
3
|
module Fitjs
|
4
|
-
class
|
5
|
-
|
4
|
+
class << self
|
5
|
+
# Inspired by Bootstrap
|
6
|
+
def load!
|
7
|
+
if rails?
|
8
|
+
register_rails_engine
|
9
|
+
elsif sprockets?
|
10
|
+
register_sprockets
|
11
|
+
end
|
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
|
6
26
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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)
|
11
44
|
end
|
12
45
|
end
|
46
|
+
end
|
47
|
+
|
48
|
+
Fitjs.load!
|
13
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.
|
4
|
+
version: 0.94.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Dunn
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: actionpack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
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:
|
26
|
+
version: 4.1.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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: '
|
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
|
-
-
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
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
|
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:
|