concerto_weather 0.0.8 → 0.0.9

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
  SHA1:
3
- metadata.gz: 473e2d15c9be361d4c307f9af0bbd84fecb2280f
4
- data.tar.gz: c4b681086d31a00756cdbc2e66cd78fc9db5f683
3
+ metadata.gz: 10c40bb7e40fa2fc179dab82df3b36f83365717e
4
+ data.tar.gz: 7326bf38ac1f94df8a428bbcd2997045977d410f
5
5
  SHA512:
6
- metadata.gz: 71136897cb03c31ee4e3e83437181260e03e119306bf155a958a76fbf9453b950ab3bc63ee2256946a4659cfa65c9fab44bd3fa81952a2c55b4b5c4c2b39498e
7
- data.tar.gz: 4eb935838e5f4567f141a25169ad02482b547f3bb600b1f2ace0ab139bf77d1a9e4d37ab30cb476c7c90083007e0e03c87865295d1295b338d886976b9f2e1aa
6
+ metadata.gz: b52fa49418fb603220faa56d17844c78f4ece5b5d0a721e30a2acc95d4fb02118190b81f7a6610d21373454315e2807a5ad0a21cb9255ad719c14c8f544f253d
7
+ data.tar.gz: 89f0665fd09fc2a7066f7b352f75845f4821673df1e927e007fb20591363f2663223a56a26436dc869771d1a7e1aac870fb8c1965fa25f7ca2e8c03129dc7350
@@ -5,7 +5,7 @@ function attachWoeidHandlers() {
5
5
  console.log('attaching woeid handlers');
6
6
 
7
7
  $('input#weather_config_woeid').on('keyup', getWoeidInfo);
8
-
8
+
9
9
  function getWoeidInfo() {
10
10
  // will place name, district-county, province-state, country, woeid into 'div.woeid-info'
11
11
 
@@ -43,27 +43,27 @@ function attachWoeidHandlers() {
43
43
  // we got something, should use jq datatables with js array load
44
44
  // places = []
45
45
  // j.forEach(function(item) {
46
- // places.push([item.name, item.placeTypeName.content, (item.admin1 ? item.admin1.content : ''),
46
+ // places.push([item.name, item.placeTypeName.content, (item.admin1 ? item.admin1.content : ''),
47
47
  // (item.admin2 ? item.admin2.content : ''), item.country.content, item.woeid]);
48
48
  // });
49
49
 
50
50
  // icky html table construction (with classes for bootstrap)
51
51
  places = "<table class=\"table table-condensed\">";
52
- places += "<thead><tr><th>Name</th><th>Type</th><th>District/County/Region</th><th>Province/State</th><th>Country</th><th>WOEID</th></th></thead>";
52
+ places += "<thead><tr><th>Name</th><th>Type</th><th>Province/State</th><th>District/County/Region</th><th>Country</th><th>WOEID</th></th></thead>";
53
53
  places += "<tbody>";
54
54
  tbody = "";
55
55
  j.forEach(function(item) {
56
56
  // todo: need htmlencoding
57
- tbody += "<tr class=\"link-hl\" data-woeid=\"" + item.woeid + "\"><td>" + htmlEncode(item.name) + "</td><td>" +
58
- htmlEncode(item.placeTypeName.content) + "</td><td>" +
59
- htmlEncode((item.admin1 ? item.admin1.content : '')) + "</td><td>" +
60
- htmlEncode((item.admin2 ? item.admin2.content : '')) + "</td><td>" +
61
- htmlEncode((item.country ? item.country.content : '')) + "</td><td>" +
57
+ tbody += "<tr class=\"link-hl\" data-woeid=\"" + item.woeid + "\"><td>" + htmlEncode(item.name) + "</td><td>" +
58
+ htmlEncode(item.placeTypeName.content) + "</td><td>" +
59
+ htmlEncode((item.admin1 ? item.admin1.content : '')) + "</td><td>" +
60
+ htmlEncode((item.admin2 ? item.admin2.content : '')) + "</td><td>" +
61
+ htmlEncode((item.country ? item.country.content : '')) + "</td><td>" +
62
62
  item.woeid + "</td></tr>";
63
63
  });
64
64
  places += tbody + "</tbody></table>";
65
65
  info = places;
66
- }
66
+ }
67
67
  $(info_el).empty().html(info);
68
68
  // wire up the clicks on the rows to populate the woeid and name fields
69
69
  $(info_el).find('tr').on('click', function (e) {
@@ -1,3 +1,3 @@
1
1
  module ConcertoWeather
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concerto_weather
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Michalski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-21 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: Show the current weather and a short forecast in the sidebar of Concerto
@@ -32,6 +32,9 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
+ - LICENSE
36
+ - README.md
37
+ - Rakefile
35
38
  - app/assets/javascripts/concerto_weather/application.js
36
39
  - app/assets/javascripts/concerto_weather/weather.js
37
40
  - app/assets/stylesheets/concerto_weather/application.css
@@ -46,13 +49,10 @@ files:
46
49
  - app/views/contents/weather/_tab_icon.html.erb
47
50
  - app/views/layouts/concerto_weather/application.html.erb
48
51
  - config/routes.rb
52
+ - lib/concerto_weather.rb
49
53
  - lib/concerto_weather/engine.rb
50
54
  - lib/concerto_weather/version.rb
51
- - lib/concerto_weather.rb
52
55
  - lib/tasks/concerto_weather_tasks.rake
53
- - LICENSE
54
- - Rakefile
55
- - README.md
56
56
  homepage: https://github.com/concerto/concerto-weather
57
57
  licenses:
58
58
  - Apache 2.0
@@ -63,17 +63,17 @@ require_paths:
63
63
  - lib
64
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - '>='
71
+ - - ">="
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.0.14
76
+ rubygems_version: 2.2.2
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Weather plugin for Concerto 2.