homesteading_assets 0.0.4 → 0.0.5

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: 1ec00cf46efe0f3b35ae9ba2aa01bbb12e666b9b
4
- data.tar.gz: aa3f1d615f68c7c34abedb4a87a80531c2c7ed5c
3
+ metadata.gz: b694b620c3aee53048e476c2e6e5796ca300c4b9
4
+ data.tar.gz: 87f71fca137280207516c4a00d87082cecf42aae
5
5
  SHA512:
6
- metadata.gz: 854b12c7c73714bc6c6f1ee06df713732bd57f42b3f80799eed271eb79aa19dccdb08994c1253f36ad6863428a91991c7dc4f5c6970842b3623330ada4d68847
7
- data.tar.gz: ebff7009b52508c6cf3657eec2711b0c55aab1429a4949c0cdb1a2a15aa727a9c002013cb7ba99721fedefa4cfcdc643becac10e4fb34589bf4d59b61c4b1e50
6
+ metadata.gz: f5f673ec29013f137d16e5f3b0cf01e373cb10ec6900b9afbfa66dcc957b47a14f0a91567b42b583656dc1eb4c242c0b44600a78380759d46c0e34b17998b86e
7
+ data.tar.gz: ae2ab76dd7cee75bf2dcbe5f2cb5812b7a2f1fca2855d98b1c9bc6450e006900e38bf44716a0f1678bbc9cf3596058f527daad445c6507c970e774c26f530670
@@ -1,7 +1,7 @@
1
- //= require modernizr
2
- //= require jquery
1
+ //= require homesteading_assets/modernizr
2
+ //= require homesteading_assets/jquery
3
3
  //= require jquery_ujs
4
- //= require jquery.simplyCountable
4
+ //= require homesteading_assets/jquery.simplyCountable
5
5
 
6
6
  // for p-location geo fields
7
7
  // TODO: extract into plugin and out of global namespace
@@ -17,38 +17,28 @@ function populateGeoFields(position) {
17
17
  var longitude = position.coords.longitude;
18
18
  var altitude = position.coords.altitude;
19
19
 
20
- $("#notes.new #note_location_latitude" ).val(latitude);
21
- $("#notes.new #note_location_longitude").val(longitude);
22
- $("#notes.new #note_location_altitude" ).val(altitude);
20
+ $(".new .p-location .p-latitude" ).val(latitude);
21
+ $(".new .p-location .p-longitude").val(longitude);
22
+ $(".new .p-location .p-altitude" ).val(altitude);
23
23
  }
24
24
 
25
25
 
26
26
  // for dt-published datetime field
27
27
  // TODO: extract into plugin and out of global namespace
28
28
  function ISODateString(d){
29
- function pad(n) { return n < 10 ? '0' + n : n }
30
- return d.getUTCFullYear()+'-'
31
- + pad(d.getUTCMonth()+1)+'-'
32
- + pad(d.getUTCDate())+'T'
33
- + pad(d.getUTCHours())+':'
34
- + pad(d.getUTCMinutes())+':'
35
- + pad(d.getUTCSeconds())+'-07:00'
29
+ function pad(n) { return n < 10 ? "0" + n : n }
30
+ return d.getUTCFullYear()+"-"
31
+ + pad(d.getUTCMonth()+1)+"-"
32
+ + pad(d.getUTCDate())+"T"
33
+ + pad(d.getUTCHours())+":"
34
+ + pad(d.getUTCMinutes())+":"
35
+ + pad(d.getUTCSeconds())+"-07:00"
36
36
  }
37
37
 
38
38
 
39
39
  $(function() {
40
- // for notes
41
- $('#note_content').simplyCountable({
42
- counter: '#content-count',
43
- countDirection: 'up',
44
- maxCount: 120,
45
- safeClass: 'under',
46
- overClass: 'over',
47
- thousandSeparator: ','
48
- });
49
-
50
40
  // prints something like 2009-09-28T19:03:12Z
51
- $("#notes.new .dt-published").val(ISODateString(new Date()))
41
+ $(".new .dt-published").val(ISODateString(new Date()))
52
42
 
53
43
  // ask user to access their location
54
44
  // populate lat/lon/alt fields
@@ -1,3 +1,3 @@
1
1
  module HomesteadingAssets
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homesteading_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Becker
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-02 00:00:00.000000000 Z
12
+ date: 2014-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails