solunar 0.0.9 → 0.0.10

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: f7ac775eac7d04b0bf2ea67b4aba8f71d16b4550
4
- data.tar.gz: 850463008978210f2d6d523351849c37451f4815
3
+ metadata.gz: 304e7335299f7bee983f4114b1b46448be50a6ee
4
+ data.tar.gz: e7898a6aa64ed2960841b60fae096897397ae4cd
5
5
  SHA512:
6
- metadata.gz: d4a0e8c1172fc436b7be1c31943f8f6ecdae07ab13c20105ddbae97a14d3d2656e3d0a9f713c5cc9ab22f6ad6c1810d3bffac507c4ce7f6f736b511b2e406dc0
7
- data.tar.gz: 515778b64d590b5b2471f7b00583e4335c63eb0d950eacfeaf8821ad246a46bd1c12012a0e724cafcd8c756e162881f64872b8a55ee431dd2cf19e8165a3ddc3
6
+ metadata.gz: 6f6700d9d123996b9f29c79c059f142232aa1e8155b31e486d7b226bb4791493f24091639188a66b41283b9f06c1a6afebc0124df323975ab7013121b387a306
7
+ data.tar.gz: a6929163b44e40cafc67a94c3de850fc7b1f4d6d0e1d3d37bbe71f010de2f15df8cc3002c02f41cf09c0f49e6da1ea65a23598936500dda40c1c71a8c1dc469d
@@ -562,12 +562,9 @@ static VALUE generate(VALUE self, VALUE r_date_str, VALUE r_count, VALUE r_lat,
562
562
  int outputLength;
563
563
  outputLength = count*251;
564
564
  char output[outputLength];
565
- rb_eval_string("puts 'Step 1'");
566
565
  result = ClubFile( club_name, date_str, count, lat, lon,
567
566
  gmt_offset, dst_time, am_pm, data_name, output, path);
568
- rb_eval_string("puts 'Step 1.5'");
569
567
  ret_v = rb_str_new2(result);
570
- rb_eval_string("puts 'Step Final'");
571
568
 
572
569
  return ret_v;
573
570
  }
@@ -906,7 +903,6 @@ PARAMETERS: name of Club File
906
903
  char* ClubFile(char *club_name, char *start_date, int count, double lat, double lon,
907
904
  int gmt_offset, int dst_time, int am_pm, char *data_name, char *output, char *path)
908
905
  {
909
- rb_eval_string("puts \"Step 2\"");
910
906
  FILE *file;
911
907
  int i;
912
908
  int n;
@@ -944,12 +940,9 @@ char* ClubFile(char *club_name, char *start_date, int count, double lat, double
944
940
  jdate = ConvertDate(start_date);
945
941
  for (i = 0; i < count; i++)
946
942
  {
947
- rb_eval_string("puts \"Step 3\"");
948
943
  success = Solunar(&solunar, jdate + i, lat, lon, gmt_offset, dst_time, data_filename);
949
- rb_eval_string("puts \"Step 4\"");
950
944
  if (success == EXIT_SUCCESS)
951
945
  {
952
- rb_eval_string("puts \"Step 5\"");
953
946
  FmtTimeStr(s_ris, solunar.sun.ris, am_pm);
954
947
  FmtTimeStr(s_trn, solunar.sun.trn, am_pm);
955
948
  FmtTimeStr(s_set, solunar.sun.set, am_pm);
@@ -1,9 +1,9 @@
1
1
  class Solunar
2
2
 
3
3
  NAME = "solunar"
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
5
5
  def version
6
- "0.0.9"
6
+ "0.0.10"
7
7
  end
8
8
 
9
9
  def test
@@ -14,7 +14,6 @@ class Solunar
14
14
  forecast = Array.new
15
15
  dir = "#{Gem.dir}/gems/#{Solunar::NAME}-#{Solunar::VERSION}/data/"
16
16
  res = generate(date,count,lat,lon,(tz_offset_hours*-60.0).to_i,(dst_offset_hours*60.0).to_i,military_time,dir)
17
- puts "Got a result"
18
17
  #Most data comes from the "generate" function, which lives in solunar.c
19
18
  #Major feed times are currently defined as two hours starting at the moon underfoot and moon transit
20
19
  #Minor feed times are one hour after moon rise and moon set
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solunar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - "\"Sullivan"
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-11-29 00:00:00.000000000 Z
13
+ date: 2016-12-01 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: A gem that wraps the C code from Rick Dawson that computes the sun and
16
16
  moon times based on date and coordinates. Takes a series of arguments, and returns